react-app-rewired
react-app-rewired copied to clipboard
Override webpackEnv used in CRA config
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