diff options
author | Robert Jaros <rjaros@finn.pl> | 2018-04-25 08:03:34 +0200 |
---|---|---|
committer | Robert Jaros <rjaros@finn.pl> | 2018-04-25 08:03:34 +0200 |
commit | 810a3abf13e18570d35808a1172dd34f516c0493 (patch) | |
tree | 0ea2cfd1c45d12c3c3e5d472eec0ec52702fd888 /webpack.config.d/minify.js | |
parent | ee64df23bb6ccb2d502f4b0c6fe561ebf6865ca3 (diff) | |
download | kvision-810a3abf13e18570d35808a1172dd34f516c0493.tar.gz kvision-810a3abf13e18570d35808a1172dd34f516c0493.tar.bz2 kvision-810a3abf13e18570d35808a1172dd34f516c0493.zip |
Upgrade Kotlin to 1.2.40 and kotlin-fronted-plugin to 0.0.30 (with webpack 4)
Dependencies on kotlinx.serialization and kotlinx.coroutines.
Diffstat (limited to 'webpack.config.d/minify.js')
-rw-r--r-- | webpack.config.d/minify.js | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/webpack.config.d/minify.js b/webpack.config.d/minify.js index 3bc8e884..d85c861c 100644 --- a/webpack.config.d/minify.js +++ b/webpack.config.d/minify.js @@ -1,5 +1,16 @@ if (defined.PRODUCTION) { - config.plugins.push(new webpack.optimize.UglifyJsPlugin({ - minimize: true - })); + const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); + + config.optimization = { + minimizer: [ + new UglifyJSPlugin({ + uglifyOptions: { + compress: { + unused: false + } + } + }) + ] + } + } |