webpack打包时候去掉console.log配置

原文链接: http://www.cnblogs.com/ryans/p/8352318.html
 new UglifyJsPlugin({
      uglifyOptions: {
        compress: {
          warnings: false,
          drop_console: true,//console
          pure_funcs: ['console.log']//移除console
        }
      },
      sourceMap: config.build.productionSourceMap,
      parallel: true
    }),

 

转载于:https://www.cnblogs.com/ryans/p/8352318.html

你可能感兴趣的:(webpack打包时候去掉console.log配置)