BetterDiscordApp-v2/client/webpack.production.config.js

22 lines
483 B
JavaScript

const path = require('path');
const baseconfig = require('./webpack.base.config');
const merge = require('webpack-merge');
const webpack = require('webpack');
const config = {
mode: 'production',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'betterdiscord.client-release.js'
},
plugins: [
new webpack.DefinePlugin({
PRODUCTION: JSON.stringify(true)
})
]
};
module.exports = merge(baseconfig, config);