perf(@vant/cli): configure manualChunks (#9584)

This commit is contained in:
neverland 2021-09-28 20:00:53 +08:00 committed by GitHub
parent 0d7fb21b73
commit 9bd0f9f6bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'],
},
},
},
},