This repo is now deprecated, check @vite-pwa/sveltekit (wip).
Updated PWA Plugin with https://github.com/antfu/vite-plugin-pwa/pull/371 local copy.
Added logic that will go to the SvelteKit integration: check Vite config file.
The logic in configureOptions
function will be provided by the new SvelteKit integration in Vite Plugin PWA.
Updated PWA Plugin with https://github.com/antfu/vite-plugin-pwa/pull/370 local copy (we need to fix types).
Added logic that will go to the SvelteKit integration: check Vite config file.
WARNING: SvelteKit not updated, failing post install script when installing latest version (474).
WARNING: current version failing on build running the adapter, I need to fix it.
UPDATED to Vite 3.1.0-beta1 and latest SvelteKit 1.0.0-next.454:
VitePluginPWA
to configure the new Rollup
sequential hook in closeBundle
: check the vite.config.js
module (DON'T DO THIS, we're preparing a new version to support Vite 3.1)pnpm dlx svelte-migrate routes
node 16.14+
: tested with node 16.17.0 LTS
.WARNING - DON'T USE THIS: we're awating Rollup and Vite to add sequential parallel hooks support:
Finally!, it works.
Using a local build of the PWA PR: https://github.com/antfu/vite-plugin-pwa/pull/327.
If you had a previous version, just remove the node_modules
and run pnpm install
.
To test it just run:
pnpm run build && pnpm run preview
orpnpm run build && pnpm run https
to test with https