react-scripts-overrides
v1.1.3
Published
Override create-react-app webpack config without ejecting
Downloads
19
Maintainers
Readme
Override create-react-app
Purpose
to change webpack configs of create-react-app
base projects without ejecting
Install
npm install react-scripts-overrides
or yarn add react-scripts-overrides
Note:
if you are using yarn, it may fail to override react-scripts/config
, see this issue yarn #5476
How it works
1、we use npm | yarn
hook postinstall
to auto run override command;
2、files,those will be overridden,are
react-scripts/config/webpack.config.dev.js
,
react-scripts/config/webpack.config.prod.js
,
react-scripts/config/paths.js
,
react-scripts/config/webpackDevServer.config.js
3、react-scripts-overrides
will generate override.config.js
in your project directory