代码优化,删除initData.js,生产环境移除console

This commit is contained in:
dqjdda
2019-11-25 19:18:43 +08:00
parent 882dc03e3c
commit 0351b72735
27 changed files with 80 additions and 170 deletions

View File

@@ -1,4 +1,10 @@
const plugins = ['@vue/babel-plugin-transform-vue-jsx']
// 生产环境移除console
if (process.env.NODE_ENV === 'production') {
plugins.push('transform-remove-console')
}
module.exports = {
plugins: plugins,
presets: [
'@vue/app'
]