You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
433 B

/*
* @Author: your name
* @Date: 2020-12-03 09:37:12
* @LastEditTime: 2020-12-04 16:52:34
* @LastEditors: your name
* @Description: In User Settings Edit
* @FilePath: \yxj-web\babel.config.js
*/
// 生产环境下清除console打印
const plugins = []
if (process.env.NODE_ENV === 'production') {
plugins.push('transform-remove-console')
}
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
],
plugins
}