new UglifyJsPlugin({
      uglifyOptions: {
        compress: {
          warnings: false,
          //过滤console.log-start
          drop_console: true,
          pure_funcs: ['console.log']
          //过滤console.log-end
        }
      },
      sourceMap: config.build.productionSourceMap,
      parallel: true
    }),
    new UglifyJsPlugin({
      uglifyOptions: {
        compress: {
          warnings: false
        }
      },
      sourceMap: config.build.productionSourceMap,
      parallel: true
    }),

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2021-07-20
  • 2021-05-19
  • 2022-12-23
  • 2021-07-13
  • 2021-08-17
猜你喜欢
  • 2021-10-29
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-05-29
  • 2021-11-04
相关资源
相似解决方案