babel.config.js 328 B

1234567891011121314
  1. const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
  2. const plugins = []
  3. if (IS_PROD) {
  4. //console.info('process.env.NODE_ENV',process.env.NODE_ENV)
  5. //plugins.push('transform-remove-console') //去除所有日志输出
  6. }
  7. module.exports = {
  8. presets: [
  9. '@vue/cli-plugin-babel/preset'
  10. ],
  11. plugins
  12. }