webpack 4 disable uglifyjs-webpack-plugin

对着背影说爱祢 提交于 2019-12-04 10:31:01

问题


I have had this problem for the last 2 days. So I decided to completely disable uglifyjs-webpack-plugin from webpack build process. I was not able to find anything on webpack 4.


回答1:


module.exports = {
    optimization:{
        minimize: false, // <---- disables uglify.
        // minimizer: [new UglifyJsPlugin()] if you want to customize it.
    }
}


来源:https://stackoverflow.com/questions/51263506/webpack-4-disable-uglifyjs-webpack-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!