Skip to content

Commit

Permalink
feat: use jsdelivr cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
thonatos committed Jan 24, 2022
1 parent 93933db commit 5f28c07
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,31 +82,31 @@ export default defineConfig({
styles:
process.env.NODE_ENV === 'development'
? [
'//unpkg.com/[email protected]/dist/antd.css',
'//unpkg.com/[email protected]/lib/index.css',
'//cdn.jsdelivr.net/npm/[email protected]/dist/antd.css',
'//cdn.jsdelivr.net/npm/[email protected]/lib/index.css',
]
: [
'//unpkg.com/[email protected]/dist/antd.min.css',
'//unpkg.com/[email protected]/lib/index.css',
'//cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.css',
'//cdn.jsdelivr.net/npm/[email protected]/lib/index.css',
],

scripts:
process.env.NODE_ENV === 'development'
? [
'//unpkg.com/[email protected]/umd/react.development.js',
'//unpkg.com/[email protected]/umd/react-dom.development.js',
'//unpkg.com/[email protected]/dist/antd.js',
'//unpkg.com/@ant-design/[email protected]/dist/index.umd.js',
'//unpkg.com/[email protected]/dayjs.min.js',
'//unpkg.com/[email protected]/lib/index.js',
'//cdn.jsdelivr.net/npm/[email protected]/umd/react.development.js',
'//cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.development.js',
'//cdn.jsdelivr.net/npm/[email protected]/dist/antd.js',
'//cdn.jsdelivr.net/npm/@ant-design/[email protected]/dist/index.umd.js',
'//cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js',
'//cdn.jsdelivr.net/npm/[email protected]/lib/index.js',
]
: [
'//unpkg.com/[email protected]/umd/react.production.min.js',
'//unpkg.com/[email protected]/umd/react-dom.production.min.js',
'//unpkg.com/[email protected]/dist/antd.min.js',
'//unpkg.com/@ant-design/[email protected]/dist/index.umd.min.js',
'//unpkg.com/[email protected]/dayjs.min.js',
'//unpkg.com/[email protected]/lib/index.js',
'//cdn.jsdelivr.net/npm/[email protected]/umd/react.production.min.js',
'//cdn.jsdelivr.net/npm/[email protected]/umd/react-dom.production.min.js',
'//cdn.jsdelivr.net/npm/[email protected]/dist/antd.min.js',
'//cdn.jsdelivr.net/npm/@ant-design/[email protected]/dist/index.umd.min.js',
'//cdn.jsdelivr.net/npm/[email protected]/dayjs.min.js',
'//cdn.jsdelivr.net/npm/[email protected]/lib/index.js',
],

antd: {},
Expand Down

0 comments on commit 5f28c07

Please sign in to comment.