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 .",
Setting
NODE_ENV
this way is a must. The size of thebundle.js
will be reduced from 330kB to 266kB and the most important part is that the app will be more performant. I've addedUglifyJsPlugin
withwarnings: 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 withcross-env
:"start": "cross-env NODE_ENV=production NODE_PATH=./shared node --harmony .",