remove default sw.js add generateSW
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
95ea154e5a
commit
b9a2ee18ca
2 changed files with 4 additions and 1 deletions
|
@ -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}"],
|
||||||
|
|
Loading…
Reference in a new issue