This repository was archived by the owner on Jul 7, 2020. It is now read-only.

Description
Setting process.env.NODE_ENV to 'production' in an applications webpack config, as referenced in the debug file (amongst others), should create an optimised build without debug messages being shown.
However, during the fluxthis build process, the webpack config uses the define plugin, and replaces the process.env.NODE_ENV with 'development' if not defined.
The resulting fluxthis build (which is what is downloaded from npm) therefore contains the code:
var IN_PRODUCTION = ("development") === 'production';
This means that for applications which make use of fluxthis, there is no way to create a production build with debugging turned off.