mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
22 lines
544 B
JavaScript
22 lines
544 B
JavaScript
const webpack = require('webpack');
|
|
const baseConfig = require('./webpack.config.base.babel');
|
|
|
|
module.exports = {
|
|
...baseConfig,
|
|
devtool: false,
|
|
mode: 'production',
|
|
optimization: {
|
|
// Minimization causes lots of small problems in a large project like this so
|
|
// we'll just disable it.
|
|
minimize: false,
|
|
},
|
|
plugins: [
|
|
...baseConfig.plugins,
|
|
new webpack.DefinePlugin({
|
|
__DEV__: false,
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
'process.env.HOT': JSON.stringify(null),
|
|
}),
|
|
],
|
|
};
|