Webpack 4 - How to configure minimize?

前端 未结 6 1924
挽巷
挽巷 2020-12-07 11:34

Webpack 4 comes with the following statement:

webpack.optimize.UglifyJsPlugin has been removed, please use config.optimization.minimize instead.

<
6条回答
  •  鱼传尺愫
    2020-12-07 12:02

    Without adding uglifyjs-webpack-plugin, you can just add this to the end of your webpack.prod.config.js file:

     optimization: {
       minimize: false
     }
    

提交回复
热议问题