babel.config.js 248 B

1234567891011
  1. const plugins = ['@vue/babel-plugin-transform-vue-jsx']
  2. // 生产环境移除console
  3. if (process.env.NODE_ENV === 'production') {
  4. plugins.push('transform-remove-console')
  5. }
  6. module.exports = {
  7. plugins: plugins,
  8. presets: [
  9. '@vue/app'
  10. ]
  11. }