2018-03-22 03:19:25 +01:00
|
|
|
const path = require('path');
|
|
|
|
|
2019-03-04 09:09:58 +01:00
|
|
|
const baseconfig = require('./webpack.base.config');
|
2018-03-22 03:19:25 +01:00
|
|
|
|
2019-03-04 09:09:58 +01:00
|
|
|
const merge = require('webpack-merge');
|
|
|
|
const webpack = require('webpack');
|
2018-03-22 03:19:25 +01:00
|
|
|
|
2019-03-04 09:09:58 +01:00
|
|
|
const config = {
|
2019-03-03 20:47:44 +01:00
|
|
|
mode: 'production',
|
2018-03-22 03:19:25 +01:00
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, 'dist'),
|
|
|
|
filename: 'betterdiscord.client-release.js'
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
PRODUCTION: JSON.stringify(true)
|
2019-03-04 09:09:58 +01:00
|
|
|
})
|
2019-03-07 18:34:32 +01:00
|
|
|
],
|
|
|
|
externals: {
|
|
|
|
sparkplug: 'require("./sparkplug")'
|
|
|
|
}
|
2018-03-22 03:19:25 +01:00
|
|
|
};
|
2019-03-04 09:09:58 +01:00
|
|
|
|
|
|
|
module.exports = merge(baseconfig, config);
|