打包相关问题修复
This commit is contained in:
@@ -63,6 +63,12 @@ export default (config: any) => {
|
||||
|
||||
build: {
|
||||
// sourcemap: config.mode !== 'production',
|
||||
minify: 'terser', // 确保使用 terser 进行压缩
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true, // 移除 console.log
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
define: {
|
||||
|
||||
Reference in New Issue
Block a user