vue-antd-admin/babel.config.js
2020-09-22 22:52:17 +08:00

14 lines
235 B
JavaScript

const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
const plugins = []
if (IS_PROD) {
plugins.push('transform-remove-console')
}
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins
}