2020-07-07 00:31:48 +00:00
|
|
|
const webpack = require('webpack');
|
2021-05-12 06:35:00 +00:00
|
|
|
const { merge } = require('webpack-merge');
|
2020-07-07 00:31:48 +00:00
|
|
|
const base = require('./webpack.config.base');
|
|
|
|
|
2021-05-12 06:35:00 +00:00
|
|
|
/** @type { import('webpack').Configuration } */
|
2020-07-07 00:31:48 +00:00
|
|
|
module.exports = merge(base, {
|
|
|
|
mode: 'production',
|
|
|
|
optimization: {
|
|
|
|
minimize: true,
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
2021-02-26 17:41:15 +00:00
|
|
|
'process.env.DEFAULT_APP_NAME': JSON.stringify('Insomnia'),
|
2021-10-12 00:35:59 +00:00
|
|
|
'process.env.VERSION': JSON.stringify(process.env.VERSION),
|
2020-07-07 00:31:48 +00:00
|
|
|
}),
|
|
|
|
],
|
|
|
|
});
|