mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 00:14:18 +00:00
perf(@vant/cli): configure manualChunks (#9584)
This commit is contained in:
@@ -148,7 +148,12 @@ export function getViteConfigForSiteProd(): InlineConfig {
|
||||
rollupOptions: {
|
||||
input: {
|
||||
main: join(SITE_SRC_DIR, 'index.html'),
|
||||
nested: join(SITE_SRC_DIR, 'mobile.html'),
|
||||
mobile: join(SITE_SRC_DIR, 'mobile.html'),
|
||||
},
|
||||
output: {
|
||||
manualChunks: {
|
||||
'vue-libs': ['vue', 'vue-router'],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user