diff options
author | dartcafe <github@dartcafe.de> | 2020-02-19 16:24:59 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-02-19 16:24:59 +0300 |
commit | d21b048e9f8cd2ff446fda2632c76a636405124f (patch) | |
tree | 0c90947012d2b25e788db749276f742bbc6eabdc /webpack.prod.js | |
parent | b69f6ce392791064578d0a2e2fe35dd438423dfe (diff) |
configure terser-plugin
Diffstat (limited to 'webpack.prod.js')
-rw-r--r-- | webpack.prod.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/webpack.prod.js b/webpack.prod.js index f5295256..2bfebd08 100644 --- a/webpack.prod.js +++ b/webpack.prod.js @@ -1,7 +1,18 @@ const merge = require('webpack-merge') const common = require('./webpack.common.js') +const TerserPlugin = require('terser-webpack-plugin') module.exports = merge(common, { mode: 'production', - devtool: 'source-map' + optimization: { + minimizer: [ + new TerserPlugin({ + parallel: true, + cache: true, + terserOptions: { + ecma: 6 + } + }) + ] + } }) |