babel.config.js 235 B

12345678910111213
  1. const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
  2. const plugins = []
  3. if (IS_PROD) {
  4. plugins.push('transform-remove-console')
  5. }
  6. module.exports = {
  7. presets: [
  8. '@vue/cli-plugin-babel/preset'
  9. ],
  10. plugins
  11. }