commit 383da6e13e2ea3da05e611d795ff962506c91adb
parent 8625a744dc18d706d14c7ff6bfb55bc39b97e9f6
Author: Joshua Robinson <jbrobinson2@crimson.ua.edu>
Date: Fri, 13 Jan 2017 19:03:56 +0530
UglifyJS2 should remove unused and dead_code (#1082)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/webpack.config.js b/tools/webpack.config.js
@@ -270,6 +270,8 @@ const clientConfig = extend(true, {}, config, {
compress: {
screw_ie8: true, // React doesn't support IE8
warnings: isVerbose,
+ unused: true,
+ dead_code: true,
},
mangle: {
screw_ie8: true,