2020-10-20 22:26:06 +02:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
// See LICENSE.txt for license information.
|
|
|
|
const merge = require('webpack-merge');
|
|
|
|
const TerserPlugin = require('terser-webpack-plugin');
|
|
|
|
|
|
|
|
const makeCommonConfig = require('./webpack.common.js');
|
2020-10-08 18:21:27 +02:00
|
|
|
|
|
|
|
const commonConfig = makeCommonConfig();
|
|
|
|
|
|
|
|
const config = merge.merge(commonConfig, {
|
2020-10-20 22:26:06 +02:00
|
|
|
mode: 'production',
|
|
|
|
optimization: {
|
|
|
|
minimize: true,
|
|
|
|
minimizer: [new TerserPlugin({})],
|
|
|
|
},
|
2020-10-08 18:21:27 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = [
|
2020-10-20 22:26:06 +02:00
|
|
|
merge.merge(config, {
|
|
|
|
}),
|
2020-10-08 18:21:27 +02:00
|
|
|
];
|