mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 16:36:37 +08:00
chore: Chunking Strategy
This commit is contained in:
parent
21f48b55e0
commit
06c86397e1
@ -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: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
|
Loading…
Reference in New Issue
Block a user