From 5dcf23303d353ff9cd0460f9bfc76378e0ffa555 Mon Sep 17 00:00:00 2001 From: Daniel Vieira Costa Date: Sat, 28 Dec 2019 15:02:03 -0300 Subject: [PATCH 1/2] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index f9e77827afa..0949e86c2c4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ +# This is a version for `create-react-app` that allows multiple entry points without using the `ejecting` +It's a fork of `create-react-app` with changes that allow the user add multiple entry points. + +## To add multiple entry points, follow the steps: +1. Clone this project and so, run `yarn create-react-app YOUR_APP_NAME`. It will create your React App using `create-react-app`; +2. Go to `YOUR_APP_NAME` folder (or move it to anywhere you want); +3. Add your new `.html` and `.js` file; +4. Add the reference of your new `app` aka `page` in the `appPages` inside the `package.json` according the following structure: +``` + { + "name": "login", + "title": "login", + "appHtml": "public/login.html", + "appIndexJs": "src/login" + } +``` +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`. +5. Slap the ⭐️ but right now, thanks. + # 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) Create React apps with no build configuration. From 3f65aee0ab23e18054ee95e6c3b22f30bb9958cb Mon Sep 17 00:00:00 2001 From: Daniel Vieira Costa Date: Sat, 28 Dec 2019 15:04:06 -0300 Subject: [PATCH 2/2] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 0949e86c2c4..488d19abb46 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -# This is a version for `create-react-app` that allows multiple entry points without using the `ejecting` -It's a fork of `create-react-app` with changes that allow the user add multiple entry points. +# This is a forked version for `create-react-app` that allows multiple entry points without using the `ejecting` ## To add multiple entry points, follow the steps: 1. Clone this project and so, run `yarn create-react-app YOUR_APP_NAME`. It will create your React App using `create-react-app`;