skip to Main Content

I am trying to customize webpack.config.js file in my create-react-app.

I know that webpack.config.js file is hidden inside of the project and available using command eject.

However I created another webpack.config.js file in the root and it seems it overrides existing hidden webpack.config.js.

Is this safe to config webpack.config.js file this way? without eject or craco?

2

Answers


  1. It seems like it is not possible without either ejecting or using a package.

    I see alot of people recommending react-app-rewired which is what I am going to go for for my own project.

    Login or Signup to reply.
  2. Frustrating as is, i found no way of getting around Create React App.
    Take a look at this issue that describes a way of configuring using craco(Create React App Configuration Override).

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search