mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-05 07:27:06 +08:00
14 lines
235 B
JavaScript
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
|
|
}
|