Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-02-19 16:24:59 +0300
committerdartcafe <github@dartcafe.de>2020-02-19 16:24:59 +0300
commitd21b048e9f8cd2ff446fda2632c76a636405124f (patch)
tree0c90947012d2b25e788db749276f742bbc6eabdc /webpack.prod.js
parentb69f6ce392791064578d0a2e2fe35dd438423dfe (diff)
configure terser-plugin
Diffstat (limited to 'webpack.prod.js')
-rw-r--r--webpack.prod.js13
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
+ }
+ })
+ ]
+ }
})