mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-17 16:22:01 +08:00
perf(vite-config): 添加手动分包以优化antdv-next的加载性能
将antdv-next库配置为独立分包,避免其代码与其他业务代码混合,提升缓存利用率和首屏加载速度。同时更新web-antd项目的环境配置,统一生产环境构建参数。
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user