Skip to content

Commit 5dcf233

Browse files
authored
Update README.md
1 parent 3f2037b commit 5dcf233

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# This is a version for `create-react-app` that allows multiple entry points without using the `ejecting`
2+
It's a fork of `create-react-app` with changes that allow the user add multiple entry points.
3+
4+
## To add multiple entry points, follow the steps:
5+
1. Clone this project and so, run `yarn create-react-app YOUR_APP_NAME`. It will create your React App using `create-react-app`;
6+
2. Go to `YOUR_APP_NAME` folder (or move it to anywhere you want);
7+
3. Add your new `.html` and `.js` file;
8+
4. Add the reference of your new `app` aka `page` in the `appPages` inside the `package.json` according the following structure:
9+
```
10+
{
11+
"name": "login",
12+
"title": "login",
13+
"appHtml": "public/login.html",
14+
"appIndexJs": "src/login"
15+
}
16+
```
17+
5. Run `yarn start` or `npm start` and access your new `app` by changing the URL according your `.html` file name. For example `http://localhost:3000/login.html`.
18+
5. Slap the ⭐️ but right now, thanks.
19+
120
# Create React App [![Build Status](https://dev.azure.com/facebook/create-react-app/_apis/build/status/facebook.create-react-app?branchName=master)](https://dev.azure.com/facebook/create-react-app/_build/latest?definitionId=1&branchName=master) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-green.svg)](https://github.com/facebook/create-react-app/blob/master/CONTRIBUTING.md)
221

322
Create React apps with no build configuration.

0 commit comments

Comments
 (0)