修改build文件夹中webpack.prod.conf.js的内容如下:

    new UglifyJsPlugin({
      uglifyOptions: {
        compress: {
          warnings: false
          drop_debugger: true
          drop_console: true
        }
      },
      sourceMap: config.build.productionSourceMap,
      parallel: true
    }),

Logo

前往低代码交流专区

更多推荐