You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff 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`.
0 commit comments