Closed DamianRivas closed 4 years ago
What would this entail / what's missing from the current template?
I'm not entirely sure what preact-cli does besides provide the necessary files like a manifest.json
, service worker, and icons. IIRC it also uses different service workers for debugging and the production build. So I'd say that's a good starting point. Beyond that I'm not sure what else they do if anything.
Google has a page showcasing the bare minimum needed to make a web app installable: https://web.dev/codelab-make-installable/
To be honest, the best thing for this might be just a blog post titled: "Building a PWA with Snowpack" that documented how to go from the CSA Preact app -> a full PWA. That would be super valuable.
If someone wrote that, I'd love to promote it and link to it in the docs!
Would it be possible to add out-of-the-box PWA support for the preact template just like in preact-cli?