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

webpack.prod.js - github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a24e6a2af64c75c05a39bcae29ca06796203725f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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,
						},
					},
				}),
			],
		},
	})
)