mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
perf(@vant/cli): configure manualChunks (#9584)
This commit is contained in:
@@ -148,7 +148,12 @@ export function getViteConfigForSiteProd(): InlineConfig {
|
|||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
input: {
|
input: {
|
||||||
main: join(SITE_SRC_DIR, 'index.html'),
|
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