kit
kit copied to clipboard
PWA out of the box.
Describe the problem
making PWA out of sveltekit requires some additional steps. PWA functionality should be provided out of the box
Describe the proposed solution
just like prerender=true, provide a flag offline = true for PWA offline access. Also, provide an option to export web app to Android App, ios App etc
Alternatives considered
NA
Importance
nice to have
Please be more specific with the requirements. PWA functionality is provided, and since everyone has different opinions/needs, it's deliberately low level so you can adjust this to your needs. Things like Vite plugin PWA or workbox should do what you want. Why would you use opinionated unflexible config over these solutions?
Exporting something to Android is out of scope of this project.
I believe short description/tutorial in Sveltekit documentation how to use Vite PWA tool may be enough.
How about adding some description in the documentation on how to implement Vite PWA
vite-pwa is already mentioned in our docs https://kit.svelte.dev/docs/service-workers , last paragraph links to https://vite-pwa-org.netlify.app/frameworks/sveltekit.html , see also https://github.com/vite-pwa/sveltekit
Closing since we don't want to add more PWA config at this time, and more full-fledged/opinionated solutions like workbox and Vite PWA are linked in the docs