From bab338ae867a08de147f994e3f6850e74a5f8115 Mon Sep 17 00:00:00 2001
From: CaptainCannabis <captaincannabis@gmx.net>
Date: Tue, 1 Oct 2019 19:38:27 +0200
Subject: [PATCH 1/2] Update webpack.config.prod.js

terser vs uglify
---
 build/webpack.config.prod.js | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/build/webpack.config.prod.js b/build/webpack.config.prod.js
index 1b091d8..1332bda 100644
--- a/build/webpack.config.prod.js
+++ b/build/webpack.config.prod.js
@@ -4,7 +4,7 @@ const VueLoaderPlugin = require('vue-loader/lib/plugin');
 const HtmlWebpackPlugin = require('html-webpack-plugin');
 const MiniCssExtractPlugin = require('mini-css-extract-plugin')
 const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
-const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
+const TerserPlugin = require('terser-webpack-plugin');
 
 const path = require('path');
 
@@ -38,6 +38,11 @@ module.exports = {
       poll: true
     }
   },
+  optimization: {
+    minimizer: [new TerserPlugin({
+      sourceMap: true,
+    })],
+  },
   module: {
     rules: [
       {
@@ -109,15 +114,6 @@ module.exports = {
     new webpack.DefinePlugin({
       'process.env': JSON.stringify('production'),
     }),
-    new UglifyJsPlugin({
-      uglifyOptions: {
-        compress: {
-          warnings: false
-        }
-      },
-      sourceMap: true,
-      parallel: true
-    }),
     new OptimizeCSSPlugin({
       cssProcessorOptions: {
         safe: true,
@@ -147,4 +143,4 @@ module.exports = {
       to: resolvePath('www/static'),
     }]),
   ]
-}
\ No newline at end of file
+}

From 7a8814569d09da3aebe1cb8f0d43e7178a551408 Mon Sep 17 00:00:00 2001
From: CaptainCannabis <captaincannabis@gmx.net>
Date: Tue, 1 Oct 2019 19:41:25 +0200
Subject: [PATCH 2/2] Update package.json

---
 package.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.json b/package.json
index bc16bd2..3826fa7 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
     "ora": "^3.0.0",
     "stylus": "^0.54.5",
     "stylus-loader": "^3.0.2",
-    "uglifyjs-webpack-plugin": "^2.1.1",
+    "terser-webpack-plugin": "^2.1.2",
     "url-loader": "^1.1.2",
     "vue-loader": "^15.6.2",
     "vue-style-loader": "^4.1.2",