Skip to content

Duobe/create-react-app-multiple-entry-points

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create React App with multiple entry points

Attention: It's an ejected version of create-react-app, however, I'm going to push a PR for this missing feature.

There's a pending PR for this solution on react/create-react-app#8249

To add more entry points, follow the steps:

  • Before cloning, slap ⭐️ now
  • Add a new page in the package.json in the property appPages. There are 2 existing pages there: index and login;
  • Create your new files for the new page. You should add a new .html file inside the public folder and also add your new .js file (related to your "new" app) inside your src folder.
  • Run yarn start or npm start;
  • Access your using the following url /.hml, for example: http://localhost:3000/login.html

About

Example that shows up how to add multiple entry points on Create React App V3 (CRA)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 94.0%
  • HTML 4.7%
  • CSS 1.3%