chore: Chunking Strategy

This commit is contained in:
CaIon 2024-03-23 19:37:19 +08:00
parent 21f48b55e0
commit 06c86397e1

View File

@ -29,6 +29,19 @@ export default defineConfig({
}, },
}, },
}, },
build: {
rollupOptions: {
output: {
manualChunks: {
'react-vendor': ['react', 'react-dom'],
'semi': ['@douyinfe/semi-ui'],
'icons': ['@douyinfe/semi-icons'],
'semantic': ['semantic-ui-react'],
'visactor': ['@visactor/react-vchart', '@visactor/vchart']
},
},
},
},
server: { server: {
proxy: { proxy: {
'/api': { '/api': {