What is the best way to generate two or more web app with one Framework7-React project

I’d like to build two web app with one Framework7-React project. They are same in almost all pages. But their entry should be different! I think it is terrible to build two packages. And I tried to create two html file. But the request url should be http://localhost:8081/app1.html and http://localhost:8081/app2.html. Then I got an error:

Uncaught TypeError: str.slice is not a function.

Any other good suggestions?