How to set production mode in react?


#1

Project: https://glitch.com/edit/#!/pi-pets


#2

You set NODE_ENV=production in the start command or your .env file.


#3

You should also set the key mode to 'production' inside of webpack.conig.js. It will automatically set some optimizations for Webpack. It would also be good if you could use what Gareth said too.