Skip to content

Override webpackEnv used in CRA config #640

@raDiesle

Description

@raDiesle

Is it possible to override the "webpackEnv" used in the original CRA config.

Background:
Would be easier to just set it to env "dev" to create a faster build when
"react-scripts build" script is executed and not change all configured plugins to disable minification everywhere.

with yarn we can patch files and change, which environment is being passed from react-scripts to get the config. Not sure if this goes in the right direction. https://yarnpkg.com/cli/patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions