]> cat aescling's git repositories - mastodon.git/commitdiff
switch uglify to compress:true,mangle:true (#2852)
authorNolan Lawson <nolan@nolanlawson.com>
Sat, 6 May 2017 19:24:59 +0000 (12:24 -0700)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 6 May 2017 19:24:59 +0000 (21:24 +0200)
config/webpack/production.js

index 2e4baa42419743aae5d66f5eebdad8a7bf401054..494ccf7efc025332755d213a08b2218fafece1be 100644 (file)
@@ -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