Force react builds into production mode

This commit is contained in:
Jori Lallo
2017-07-10 20:10:54 -07:00
parent 79921ebd18
commit be4ce5d9b5

View File

@ -41,5 +41,12 @@ productionWebpackConfig.plugins.push(
},
})
);
productionWebpackConfig.plugins.push(
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('production'),
},
})
);
module.exports = productionWebpackConfig;