Skip to content

Add --ejected flag #11566

@samcodee

Description

@samcodee

Is your proposal related to a problem?

Yes. Sometimes, I would want to create a app and eject it (For example, creating a chrome extension / electron app). It is hard to first run create react app and then eject.

Describe the solution you'd like

Add a flag to eject

Example, npx create-react-app app-name --ejected instead of npx create-react-app app-name && cd app-name && npm run eject

When running with the ejected flag, it should ask for a confirmation at the beginning.
Eg. You have chosen to eject the app. Would you like to proceed? (Y/n)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions