编译删除console
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
let build = []
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
build = ['transform-remove-console']
|
||||
}
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
],
|
||||
plugins: [...build]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user