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:
git switch -c capacitor
npm run buildSwitched 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.