|
@ -36,8 +36,8 @@ export function createBuild(viteEnv) { |
|
|
// 压缩配置
|
|
|
// 压缩配置
|
|
|
terserOptions: { |
|
|
terserOptions: { |
|
|
compress: { |
|
|
compress: { |
|
|
drop_console: true, // 生产环境移除console
|
|
|
|
|
|
drop_debugger: true // 生产环境移除debugger
|
|
|
|
|
|
|
|
|
drop_console: false, // 生产环境移除console
|
|
|
|
|
|
drop_debugger: false // 生产环境移除debugger
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|