perf(vite-config): 添加手动分包以优化antdv-next的加载性能

将antdv-next库配置为独立分包,避免其代码与其他业务代码混合,提升缓存利用率和首屏加载速度。同时更新web-antd项目的环境配置,统一生产环境构建参数。
This commit is contained in:
dap
2026-01-28 20:02:28 +08:00
parent dab5f8ed72
commit 72a62fa77f
2 changed files with 35 additions and 4 deletions

View File

@@ -64,6 +64,9 @@ function defineApplicationConfig(userConfigPromise?: DefineApplicationOptions) {
chunkFileNames: 'js/[name]-[hash].js',
entryFileNames: 'jse/index-[name]-[hash].js',
experimentalMinChunkSize: 20 * 1024,
manualChunks: {
'antdv-next': ['antdv-next'],
},
},
},
target: 'es2015',