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
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-07-07 10:55:51 +0300
commit1e930441c4c1defb31254c81171a7912e3b5f10b (patch)
tree9a8dfcd77a2f40c684b8596ee6af05f800eebb10 /webpack.prod.js
parent882c0c1b26977d1284257578de6b8ab418cc8a71 (diff)
Do not quote properties when optimizing bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
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,
+ },
+ },
+ }),
+ ],
+ },
})
)