Switching react into production mode for production builds. #4048
Motivation and Context
Before this change, react was running in development mode even for
How Has This Been Tested?
The Chrome React Developer Tools show warnings if the development build is used, the build is not minified or the version is out of date. This has been used to make sure that for production there is the production build in use.
Screenshots (if appropriate):
Types of changes
Before this change, react was running in development mode even for production builds, because the vendor bundle was not built with the proper environment variable set. This change is supposed to remediate this.