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

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