kit icon indicating copy to clipboard operation
kit copied to clipboard

PWA out of the box.

Open pgcr71 opened this issue 1 year ago • 4 comments

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

pgcr71 avatar Dec 22 '22 17:12 pgcr71

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.

dummdidumm avatar Dec 22 '22 17:12 dummdidumm

I believe short description/tutorial in Sveltekit documentation how to use Vite PWA tool may be enough.

kvetoslavnovak avatar Dec 23 '22 19:12 kvetoslavnovak

How about adding some description in the documentation on how to implement Vite PWA

juslin03 avatar Dec 27 '22 16:12 juslin03

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

dominikg avatar Dec 27 '22 16:12 dominikg

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

dummdidumm avatar Jan 11 '23 09:01 dummdidumm

Simply linking to VitePWA seems insufficient to me. The libraries support for offline working has been broken for months/ever. Issue.

ESchouten avatar Mar 06 '23 17:03 ESchouten