blob: 69964a32b0f96d98579d668b69ec58fddbc66dd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
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,
}),
],
},
})
)
|