Building PWAs with Stencil
Want to build a PWA with Stencil? Follow these instructions to instantly have a production ready PWA.
git clone https://github.com/ionic-team/stencil-app-starter.git my-pwain your terminal.
npm run build
Under the hood
When your run
npm run build we automatically generate a Service Worker for you using Workbox that handles pre-caching your assets.
By default we include a Web Manifest that has all the neccessary entries to get the Add to Homescreen prompt. You can see that web manifest here .