diff --git a/src/sw.ts b/src/sw.ts deleted file mode 100644 index 4686000d..00000000 --- a/src/sw.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -/// -/// - -declare let self: ServiceWorkerGlobalScope -import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching' -import { clientsClaim } from 'workbox-core' - -// disable workbox logs -self.__wb_disable_dev_logs = true -cleanupOutdatedCaches() // cleanup everything that's not needed anymore - -precacheAndRoute(self.__WB_MANIFEST) //cache our new stuff -self.skipWaiting() -clientsClaim() diff --git a/vite.config.ts b/vite.config.ts index e6fa4fe3..2822b409 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,8 +13,6 @@ import { VitePWA, VitePWAOptions } from 'vite-plugin-pwa' const PWAConfig: Partial = { registerType: 'autoUpdate', - srcDir: 'src', - filename: 'sw.ts', includeAssets: ['fonts/**/*.woff2', 'img/**/*.svg', 'img/**/*.png'], manifest: { name: 'Mainsail',