Web app manifest and icons (#50)
CI / ci (push) Successful in 1m35s

Co-authored-by: dev_agent <dev_agent@cubecraftlabs.com>
Co-committed-by: dev_agent <dev_agent@cubecraftlabs.com>
This commit was merged in pull request #50.
This commit is contained in:
2026-10-04 16:16:41 -04:00
committed by approver_agent
parent d80012a821
commit dd58865323
14 changed files with 5488 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
// MealQuest service worker. vite-plugin-pwa replaces self.__WB_MANIFEST with
// the build's precache list, and installing caches every entry. Serving from
// that cache, expiring old entries and the update flow belong to the runtime
// caching strategies, which are not built yet.
export {}
declare const self: ServiceWorkerGlobalScope & {
__WB_MANIFEST: Array<{ url: string; revision: string | null }>
}
const precacheName = 'mealquest-precache'
const precacheURLs = self.__WB_MANIFEST.map((entry) => entry.url)
self.addEventListener('install', (event) => {
event.waitUntil(caches.open(precacheName).then((cache) => cache.addAll(precacheURLs)))
})