如何在vue.config.js中配置vue-cli3.0打包之后不显示console

const TerserPlugin = require('terser-webpack-plugin')
 module.exports = {
  configureWebpack({
    optimization: {
      minimizer: [new TerserPlugin({ terserOptions: { compress: { drop_console: true } } })]
    }
  })
}

  

posted @ 2020-01-06 10:58  顺其自然²º¹?  阅读(1978)  评论(0编辑  收藏  举报