diff --git a/frontend/webpack.production.config.js b/frontend/webpack.production.config.js index ac58a43..4383a1e 100644 --- a/frontend/webpack.production.config.js +++ b/frontend/webpack.production.config.js @@ -41,18 +41,18 @@ module.exports = { }), new FaviconsWebpackPlugin('../static/img/avatar.png'), new webpack.optimize.DedupePlugin(), - new webpackUglifyJsPlugin({ - cacheFolder: path.resolve(__dirname, 'output/ug'), - debug: false, - minimize: true, - sourceMap: false, - output: { - comments: false - }, - compressor: { + new webpack.optimize.UglifyJsPlugin({ + beautify: false, + mangle: true, + comments: false, + compress: { + dead_code: true, + loops: true, + if_return: true, + unused: true, warnings: false } - }), + }) ], resolveLoader: { modules: [