打包相关问题修复

This commit is contained in:
付民康
2025-03-13 19:11:24 +08:00
parent cbbc5f4ee5
commit 214272f011
6 changed files with 7 additions and 5 deletions

View File

@@ -63,6 +63,12 @@ export default (config: any) => {
build: {
// sourcemap: config.mode !== 'production',
minify: 'terser', // 确保使用 terser 进行压缩
terserOptions: {
compress: {
drop_console: true, // 移除 console.log
},
},
},
define: {