mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-09 08:56:07 +02:00
b2346fcacf
* File `package-lock.json` updated. * Use `cross-env` for setting environment variables in npm scripts. * Remove all the mentions of `win-node-env` because it is no longer needed for running npm scripts. Co-authored-by: Chen-I Lim <46905241+chenilim@users.noreply.github.com>
22 lines
552 B
JavaScript
22 lines
552 B
JavaScript
// 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');
|
|
|
|
const commonConfig = makeCommonConfig();
|
|
|
|
const config = merge.merge(commonConfig, {
|
|
mode: 'production',
|
|
optimization: {
|
|
minimize: true,
|
|
minimizer: [new TerserPlugin({extractComments: false})],
|
|
},
|
|
});
|
|
|
|
module.exports = [
|
|
merge.merge(config, {
|
|
}),
|
|
];
|