Home > Net >  Where to find webpack config file inside a app created using CRA(create-react-app)
Where to find webpack config file inside a app created using CRA(create-react-app)

Time:11-06

I've a react app created using create-react-app. I recently saw some article saying to add few loaders to webpack config file. But I've no idea where to find the webpack.config.js file inside a react project.

Really appreciate any ideas or suggestions.

CodePudding user response:

Webpack config is not available in CRA. If you want to get one, you have to do an eject (https://create-react-app.dev/docs/available-scripts/), but if you don't need to make eject, or you don't wanna do this, you can use the library which is the wrapper of CRA, for example: CRACO or rewrite

CodePudding user response:

A good samaritan shared this article with me to answer my question.

https://medium.com/@ryoldash/customize-webpack-config-of-react-app-created-with-create-react-app-7a78c7849edc

  • Related