mirror of
https://github.com/nextcloud/server.git
synced 2024-08-28 05:54:51 +02:00
d7845570c0
Bumps [webpack-merge](https://github.com/survivejs/webpack-merge) from 4.2.2 to 5.0.9. - [Release notes](https://github.com/survivejs/webpack-merge/releases) - [Changelog](https://github.com/survivejs/webpack-merge/blob/master/CHANGELOG.md) - [Commits](https://github.com/survivejs/webpack-merge/compare/v4.2.2...v5.0.9) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
25 lines
521 B
JavaScript
25 lines
521 B
JavaScript
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,
|
|
}),
|
|
],
|
|
},
|
|
})
|
|
)
|