You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/webpack.prod.js

24 lines
521 B

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,
}),
],
},
})
)