summaryrefslogtreecommitdiffstats
path: root/webpack.prod.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-17 09:45:22 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-17 13:03:39 +0100
commit043b5a9de44542522541c66c8f37b1109338ae9f (patch)
tree73585e0dc83e48392d2cdb76ad33cfcf0d328710 /webpack.prod.js
parent5d9bb5e2471b5266496a1bfd0af11e766de917c2 (diff)
downloadnextcloud-server-043b5a9de44542522541c66c8f37b1109338ae9f.tar.gz
nextcloud-server-043b5a9de44542522541c66c8f37b1109338ae9f.zip
Fix TerserPlugin
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'webpack.prod.js')
-rw-r--r--webpack.prod.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/webpack.prod.js b/webpack.prod.js
index 69964a32b0f..e0597e595c6 100644
--- a/webpack.prod.js
+++ b/webpack.prod.js
@@ -1,24 +1,9 @@
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,
- },
- },
- sourceMap: true,
- }),
- ],
- },
+ devtool: 'source-map',
})
)