facebook / react

The library for web and native user interfaces.
https://react.dev
MIT License
229.25k stars 46.95k forks source link

[Webpack config] Docs Request: `npm run eject` aka `yarn eject` #11324

Closed IamManchanda closed 7 years ago

IamManchanda commented 7 years ago

Just like https://github.com/vuejs-templates/

blling commented 7 years ago

Do you mean create-react-app ?

gaearon commented 7 years ago

Not sure what the issue is about, but you can indeed use Create React App which is officially supported.

IamManchanda commented 7 years ago

I mean built-in webpack specific template(s)

This kind of a thing (Hope you are understanding?) https://github.com/vuejs-templates/webpack/blob/develop/template/package.json https://github.com/vuejs-templates/webpack/tree/develop/template/build

Some React examples for same: https://scotch.io/tutorials/setup-a-react-environment-using-webpack-and-babel https://github.com/IamManchanda/hello-world-react https://github.com/StephenGrider/ReduxSimpleStarter


@gaearon Would request you to reopen the issue if this makes sense!

gaearon commented 7 years ago

CRA uses webpack under the hood. If you eject you'll get a typical webpack boilerplate, if that's what you want.

Does this make sense?

IamManchanda commented 7 years ago

@gaearon Nice just checked .... thankyou Actually coming from Vue learning React so didn't knew about it!

That said, there is no such mention in the docs for same? That need to change for sure. Does that make sense?

IamManchanda commented 7 years ago

@gaearon Knock Knock!

That said, there is no such mention in the docs for same? That need to change for sure.