fix env, sw, pwa

This commit is contained in:
Tom (plebeius.eth)
2025-05-22 17:42:04 +02:00
parent facd20d4c2
commit 0a5f868747
11 changed files with 56 additions and 8 deletions
+15
View File
@@ -0,0 +1,15 @@
/// <reference lib="webworker" />
/* eslint-disable no-restricted-globals */
import { clientsClaim } from 'workbox-core';
import { precacheAndRoute, cleanupOutdatedCaches } from 'workbox-precaching';
declare const self: ServiceWorkerGlobalScope;
// Precache all assets specified in the manifest
cleanupOutdatedCaches();
precacheAndRoute(self.__WB_MANIFEST);
// Standard SW lifecycle methods
self.skipWaiting();
clientsClaim();