Skip to content

Commit 556fcc5

Browse files
committed
chore: remove console in production mode
1 parent 91c2b2a commit 556fcc5

File tree

3 files changed

+341
-118
lines changed

3 files changed

+341
-118
lines changed

babel.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
let plugins = []
2+
// 生产模式使用 transform-remove-console 插件
3+
if (process.env.NODE_ENV === 'production') {
4+
plugins.push("transform-remove-console")
5+
}
16
module.exports = {
27
presets: [
38
'@vue/app'
4-
]
9+
],
10+
plugins
511
}

0 commit comments

Comments
 (0)