feat: 更新 Vite 配置,添加手动分块注释以优化构建输出
All checks were successful
/ depcheck (push) Successful in 1m34s
/ playwright (push) Successful in 1m54s
/ build-and-deploy-to-vercel (push) Successful in 1m36s

This commit is contained in:
严浩
2025-01-02 23:09:12 +08:00
parent 78ec619f23
commit 47e2c5d813

View File

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