Reusing the Project

Reusing the Chapter 2 Framework7 Project

Capacitor 243,123 wraps a web app; it does not replace it, so the Framework7 project is used as it is: the Framework7 9 572,986 app created with the CLI (Framework and Template), its Vite 25,978 build writing to www/ (Production Bundle), the store, the routes and the six books. Nothing in src/ has to change before Capacitor is added, and the same folder keeps producing the PWA of Installing the PWA. Work on a Git 1,932 branch, so the web-only version stays one command away:

Starting the Capacitor work on a branch of the Chapter 2 projectShell
git switch -c capacitor
npm run build
Output
Switched to a new branch 'capacitor'
...
The service worker will precache 15 URLs, totaling 1.99 MB.

That last line is the Workbox 13,023 step of Service Worker: the build Capacitor copies still contains a service worker, which Adding Capacitor deals with. The router's own history (browserHistory is off, Views and the Router Instance) suits a WebView without an address bar.