Skip to content

Commit

Permalink
1. cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
JingDeZhe committed Jun 7, 2024
1 parent 04387e8 commit 41b6f9b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,7 @@ export default defineConfig({
dts: './auto-imports.d.ts',
}),
cdn({
modules: [
{
name: 'react',
var: 'React',
path: `https://cdnjs.cloudflare.com/ajax/libs/react/18.3.1/cjs/react.production.min.js`,
},
{
name: 'react-dom',
var: 'ReactDOM',
path: `https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.3.1/cjs/react-dom.production.min.js`,
},
{
name: 'react-router-dom',
var: 'ReactRouterDOM',
path: `https://cdnjs.cloudflare.com/ajax/libs/react-router-dom/6.23.1/react-router-dom.production.min.js`,
},
],
modules: ['react', 'react-dom', 'react-router-dom'],
}),
],
resolve: {
Expand Down

0 comments on commit 41b6f9b

Please sign in to comment.