打包配置修改

This commit is contained in:
付民康
2025-03-20 16:46:20 +08:00
parent 2bc3c89f38
commit 8d3169b28d
3 changed files with 3 additions and 1 deletions

View File

@@ -61,6 +61,7 @@ export default (config: any) => {
},
build: {
outDir: 'openRepoPortal', // 将打包后的文件夹名改为 openRepoPortal
// sourcemap: config.mode !== 'production',
minify: 'terser', // 确保使用 terser 进行压缩
terserOptions: {