bananaoomarang / isomorphic-redux

Isomorphic Redux demo, with routing and async actions
https://medium.com/@bananaoomarang/handcrafting-an-isomorphic-redux-application-with-love-40ada4468af4
MIT License
455 stars 87 forks source link

Set `NODE_ENV` through `DefinePlugin` for proper envification. #48

Closed Dattaya closed 8 years ago

Dattaya commented 8 years ago

Setting NODE_ENV this way is a must. The size of the bundle.js will be reduced from 330kB to 266kB and the most important part is that the app will be more performant. I've added UglifyJsPlugin with warnings: false because by default it shows a big and annoying list of warnings. If you wish we can make this repository more friendlier to Windows users with cross-env: "start": "cross-env NODE_ENV=production NODE_PATH=./shared node --harmony .",

bananaoomarang commented 8 years ago

Thanks!