summaryrefslogtreecommitdiffstats
path: root/webpack.prod.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-07 09:18:43 +0200
committerJulius Härtl <jus@bitgrid.net>2020-07-07 09:23:32 +0200
commit5aef97cfa7c81b00859f7e2966c77cbe42e66d0a (patch)
treef1f5a780309e0192c7d631413e383a6d51f27fc1 /webpack.prod.js
parent09b9f94c38dda015412cebf2cc8f7c7100001a67 (diff)
downloadnextcloud-server-5aef97cfa7c81b00859f7e2966c77cbe42e66d0a.tar.gz
nextcloud-server-5aef97cfa7c81b00859f7e2966c77cbe42e66d0a.zip
Do not quote properties when optimizing bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'webpack.prod.js')
-rw-r--r--webpack.prod.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/webpack.prod.js b/webpack.prod.js
index 7cf446b9be5..a24e6a2af64 100644
--- a/webpack.prod.js
+++ b/webpack.prod.js
@@ -1,9 +1,23 @@
const merge = require('webpack-merge')
const common = require('./webpack.common.js')
+const TerserPlugin = require('terser-webpack-plugin');
module.exports = common.map(
config => merge(config, {
mode: 'production',
devtool: '#source-map',
+ // This is required to keep IE11 compatibility (see #21316)
+ optimization: {
+ minimize: true,
+ minimizer: [
+ new TerserPlugin({
+ terserOptions: {
+ output: {
+ keep_quoted_props: true,
+ },
+ },
+ }),
+ ],
+ },
})
)