mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
perf(@vant/cli): configure manualChunks (#9584)
This commit is contained in:
parent
0d7fb21b73
commit
9bd0f9f6bb
@ -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'],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user