webpack.optimize.UglifyJsPlugin has been removed (4.xxx version) when compressed js use in webpack

Version 4.0 has been unable to define the compression in plugins js code, and need to package.json defined.

--config webpack.pro.config.js behind my js file additional definitions used in the production environment.

Guess you like

Origin blog.csdn.net/DorAction/article/details/89454922