remove default sw.js add generateSW
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-07-19 15:18:48 +02:00
parent 95ea154e5a
commit b9a2ee18ca
2 changed files with 4 additions and 1 deletions

View file

@ -5,7 +5,10 @@ import { SvelteKitPWA } from '@vite-pwa/sveltekit'
const config = { const config = {
plugins: [ plugins: [
sveltekit(), sveltekit(),
SvelteKitPWA() SvelteKitPWA({
registerType: 'autoUpdate',
strategies: 'generateSW'
})
], ],
test: { test: {
include: ["src/**/*.{test,spec}.{js,ts}"], include: ["src/**/*.{test,spec}.{js,ts}"],