feat: 更新 Vite 配置,添加手动分块注释以优化构建输出
This commit is contained in:
@ -38,6 +38,16 @@ export default defineConfig(({ mode, command }) => {
|
||||
// output: env.VITE_SPLIT_CHUNKS === 'true' ? (await import('utils4u/rollup')).createSplitChunkOutput() : undefined,
|
||||
output: {
|
||||
minifyInternalExports: false,
|
||||
// manualChunks: {
|
||||
// 'vendor/utils4u': ['utils4u', 'utils4u/vue-use', 'utils4u/primevue'],
|
||||
// 'vendor/vue': ['vue'],
|
||||
// 'vendor/primevue': ['primevue'],
|
||||
// 'vendor/faker-js': ['@faker-js/faker'],
|
||||
// 'vendor/mockjs': ['mockjs'],
|
||||
// 'vendor/axios': ['axios', 'alova', '@alova/adapter-axios'],
|
||||
// // 'vendor/nprogress': ['nprogress'],
|
||||
// // 'vendor/formkit': ['@formkit/auto-animate'],
|
||||
// },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user