Override webpackEnv used in CRA config

Author: raDiesleCreated Dec 5, 2022Updated 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

Source: timarney/react-app-rewired