christianalfoni / react-app-boilerplate

React application boilerplate
303 stars 80 forks source link

Add production env variable to deploy task for smaller builds #1

Closed mattijsbliek closed 10 years ago

mattijsbliek commented 10 years ago

Adding process.env.NODE_ENV = 'production'; to the deploy gulp task strips another 20KB out of React.

Transforming with uglifyify would save even more probably, but I haven't managed to get it working.

christianalfoni commented 10 years ago

Hi @mattijsbliek , this is now updated. Thanks for the tip! :-)