🔧(script): 打包 build 去 注释 console.log debugger

This commit is contained in:
就眠儀式
2022-06-25 22:45:44 +08:00
parent 23bff375cf
commit 77be989540
10 changed files with 55 additions and 5 deletions

View File

@@ -66,6 +66,16 @@ export default (): UserConfigExport => {
entry: resolve(process.cwd(), "./src/index.ts"),
formats: ["es"],
},
terserOptions: {
compress: {
drop_console: true,
drop_debugger: true,
pure_funcs: ['console.log']
},
output: {
comments: true
}
},
rollupOptions: {
input: inputs,
output: {