线上环境也开启console打印
This commit is contained in:
parent
fa40aea621
commit
e3fdca4ac2
@ -1,11 +1,11 @@
|
||||
const prodPlugins = []
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
prodPlugins.push('transform-remove-console')
|
||||
// prodPlugins.push('transform-remove-console')
|
||||
}
|
||||
module.exports = {
|
||||
presets: [[
|
||||
"@babel/preset-env",
|
||||
{ targets: "> 1% in AU and not dead", shippedProposals: true },
|
||||
],'@vue/cli-plugin-babel/preset'],
|
||||
plugins:[...prodPlugins]
|
||||
], '@vue/cli-plugin-babel/preset'],
|
||||
plugins: [...prodPlugins]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user