about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNolan Lawson <nolan@nolanlawson.com>2017-05-06 12:24:59 -0700
committerEugen Rochko <eugen@zeonfederated.com>2017-05-06 21:24:59 +0200
commit80093662312995f981dca8519e4be92c1cad6f8b (patch)
tree801d004a6289874750150577b17fe9c9de387706
parentbd71327180fb4a938f5d98bbb2f1d6a624116d66 (diff)
switch uglify to compress:true,mangle:true (#2852)
-rw-r--r--config/webpack/production.js18
1 files changed, 2 insertions, 16 deletions
diff --git a/config/webpack/production.js b/config/webpack/production.js
index 2e4baa424..494ccf7ef 100644
--- a/config/webpack/production.js
+++ b/config/webpack/production.js
@@ -12,22 +12,8 @@ module.exports = merge(sharedConfig, {
 
   plugins: [
     new webpack.optimize.UglifyJsPlugin({
-      compress: {
-        unused: true,
-        evaluate: true,
-        booleans: true,
-        drop_debugger: true,
-        dead_code: true,
-        pure_getters: true,
-        negate_iife: true,
-        conditionals: true,
-        loops: true,
-        cascade: true,
-        keep_fargs: false,
-        warnings: true
-      },
-
-      mangle: false,
+      compress: true,
+      mangle: true,
 
       output: {
         comments: false