prajeesh
prajeesh

Reputation: 2382

When do you eject a reactjs application

I have built a reactJS application npx create-react-app.

Currently I have ejected the application because I need to use the copy webpack plugin. For that, I need to get access to the configuration files.

The question is,

Upvotes: 6

Views: 1147

Answers (2)

ManavM
ManavM

Reputation: 3098

  • There is no real recommended practice for this. If you feel the need to override your configurations, then do it. Otherwise, there's no reason to do so.

  • There will be no harmful effects from ejecting. Your build is simply going from being wrapped in a single dependency to its actual component parts.

  • Usually you would run eject when you want to override something in the configuration. For example if you want to use your copy-webpack-plugin. Or want to use custom aliases. Or any other plugin/function/tweak to your configurations

Upvotes: 1

Gabriel Ferreira
Gabriel Ferreira

Reputation: 330

You don't need eject your application.

See this lib: https://github.com/timarney/react-app-rewired

Override create-react-app webpack configs without ejecting

You will need to eject when you work in a very specific way.

Today, we have any ways to work without eject your application :)

Upvotes: 0

Related Questions