According to https://github.com/facebook/react/issues/3877 this is due to the fact that NODE_ENV is not set to production. We have to tweak webpack.config.js so that when npm run build is invoked the proper environment is set.
if (TARGET === 'build') {
// set NODE_ENV to production
}
Currently an app deployed to production prints to the browser console:
According to https://github.com/facebook/react/issues/3877 this is due to the fact that
NODE_ENV
is not set to production. We have to tweakwebpack.config.js
so that whennpm run build
is invoked the proper environment is set.