Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from soldotno/disable-UglifyJsPlugin
Browse files Browse the repository at this point in the history
Disable uglify js plugin
  • Loading branch information
SindreSvendby authored Jul 8, 2016
2 parents ae5bd80 + 9a1864f commit f5e1918
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ if (!isProduction) {
*/
if (isProduction) {
plugins.push(new webpack.optimize.DedupePlugin());
plugins.push(new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }));
plugins.push(new OutputHashAsModulePlugin({ file: 'bundle-hash.js' }));
if (!process.env.DISABLE_JS_UGLIFY) {
plugins.push(new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }));
}
}

/**
Expand Down

0 comments on commit f5e1918

Please sign in to comment.