Fixed initial load being slow
This commit is contained in:
@@ -9,6 +9,20 @@ export default defineConfig({
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks: {
|
||||
'vendor-react': ['react', 'react-dom'],
|
||||
'vendor-d3': ['d3'],
|
||||
'vendor-motion': ['framer-motion'],
|
||||
'vendor-search': ['fuse.js'],
|
||||
'vendor-markdown': ['react-markdown'],
|
||||
'vendor-carousel': ['embla-carousel-react', 'embla-carousel-autoplay'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://localhost:3000',
|
||||
|
||||
Reference in New Issue
Block a user