- How to override default
webpackconfig of react apps created with
- How to modify default
eslintrules/config of react apps?
- How to add additional
webpackplugins to react apps?
- How to use custom eslint file when running react apps?
react-scripts will warn you, simply ignore 😇.
After this process completes CRA (create-react-app) will eject all configs and scripts
There will be 2 new folders in the root of the project
/config ..env.js ..getHttpsConfig.js ..modules.js ..paths.js ..pnpTs.js ..webpack.config.js <----------- webpack config file ..webpackDevServer.config.js ../jest /scripts ..build.js ..start.js ..test.js
There you go, modify the
webpack.config.js files as you wish. Questions 1 and 3 are solved.
For Q2 and 4 you don't have to do anything, once we eject all the configs
webpack will automatically use
eslint files in the project root.