vite-pwa / sveltekit

Zero-config PWA Plugin for SvelteKit
https://vite-pwa-org.netlify.app/frameworks/sveltekit
MIT License
324 stars 15 forks source link

feat!: refactor plugin to allow work with latest kit changes #32

Closed userquin closed 1 year ago

userquin commented 1 year ago

With this PR we can use generateSW strategy, but using injectManifest (custom ts sw), Rollup unable to generate proper sw output.

With this PR dev server working with both strategies: to switch to generateSW just comment strategies and filename in pwa options.

/cc @benmccann

closes #21 supersedes #30

userquin commented 1 year ago

@benmccann simplified version to switch between strategies: just modify pwa.mjs flag.

userquin commented 1 year ago

I'm going to remove the new option latestKit...