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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-07 10:18:43 +0300
committerJulius Härtl <jus@bitgrid.net>2020-07-07 10:23:32 +0300
commit5aef97cfa7c81b00859f7e2966c77cbe42e66d0a (patch)
treef1f5a780309e0192c7d631413e383a6d51f27fc1 /webpack.prod.js
parent09b9f94c38dda015412cebf2cc8f7c7100001a67 (diff)
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,
+ },
+ },
+ }),
+ ],
+ },
})
)