Force react builds into production mode
This commit is contained in:
@ -41,5 +41,12 @@ productionWebpackConfig.plugins.push(
|
||||
},
|
||||
})
|
||||
);
|
||||
productionWebpackConfig.plugins.push(
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
NODE_ENV: JSON.stringify('production'),
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
module.exports = productionWebpackConfig;
|
||||
|
Reference in New Issue
Block a user