react-app-rewired icon indicating copy to clipboard operation
react-app-rewired copied to clipboard

Override webpackEnv used in CRA config

Open raDiesle opened this issue 3 years ago • 0 comments

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

raDiesle avatar Dec 05 '22 11:12 raDiesle