mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
25 lines
604 B
TypeScript
25 lines
604 B
TypeScript
import { Configuration, DefinePlugin } from 'webpack';
|
|
|
|
import baseConfig from './webpack.config.base';
|
|
|
|
const configuration: Configuration = {
|
|
...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 DefinePlugin({
|
|
__DEV__: false,
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
'process.env.HOT': JSON.stringify(null),
|
|
}),
|
|
],
|
|
};
|
|
|
|
export default configuration;
|