2021-03-20 19:08:15 +00:00
|
|
|
const { merge } = require('webpack-merge');
|
|
|
|
|
|
|
|
const common = require('./webpack.common.js');
|
2021-04-19 07:30:29 +00:00
|
|
|
const webpack = require('webpack')
|
2021-03-20 19:08:15 +00:00
|
|
|
|
|
|
|
module.exports = merge(common, {
|
|
|
|
|
|
|
|
mode: 'production',
|
2021-04-19 07:30:29 +00:00
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
// 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
|
|
|
|
'process.env.NODE_ENV': 'production'
|
|
|
|
}),
|
|
|
|
new webpack.IgnorePlugin(/redux-logger/)
|
|
|
|
]
|
2021-03-20 19:08:15 +00:00
|
|
|
});
|