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

Unable to create production build without debugging #150

@alistairjcbrown

Description

@alistairjcbrown

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions