Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override webpackEnv used in CRA config #640

Open
raDiesle opened this issue Dec 5, 2022 · 0 comments
Open

Override webpackEnv used in CRA config #640

raDiesle opened this issue Dec 5, 2022 · 0 comments

Comments

@raDiesle
Copy link

raDiesle commented Dec 5, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant