From 231a6e2b241d3be541ed92eecf2e6626069ed14d Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Thu, 21 Feb 2019 22:16:51 +0300 Subject: [PATCH 1/3] Remove uglify --- webpack.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index b5f7f3bb..7d23ab1c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -14,10 +14,9 @@ var config = { } if (process.env.NODE_ENV === 'production') { - config.plugins = [ - new webpack.optimize.UglifyJsPlugin({ sourceMap: true }), - new webpack.LoaderOptionsPlugin({ minimize: true }) - ] + config.optimization = { + minimize: true + }; } module.exports = config From 0baca703790f2d62d757f7ce813f9ab472f7d04d Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Fri, 22 Feb 2019 21:56:35 +0300 Subject: [PATCH 2/3] lint --- webpack.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 7d23ab1c..a0e07d98 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,5 +1,3 @@ -var webpack = require('webpack') - var config = { entry: './src/index', module: { @@ -19,4 +17,4 @@ if (process.env.NODE_ENV === 'production') { }; } -module.exports = config +module.exports = config; From e09b2cf55f8f28bc09ebd7f968275dfdc0a3d59c Mon Sep 17 00:00:00 2001 From: Andrii Kostenko Date: Sun, 24 Feb 2019 16:23:39 +0300 Subject: [PATCH 3/3] lint --- webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a0e07d98..40dbda56 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -14,7 +14,7 @@ var config = { if (process.env.NODE_ENV === 'production') { config.optimization = { minimize: true - }; + } } -module.exports = config; +module.exports = config