fix: remove unused disabled prop, throttle SW update checks, precache icon

This commit is contained in:
Chris Scott committed 2026-06-27 00:11:19 -04:00
1 parent a56d86e98a
commit 685ee219d8
6 files changed
+14 -17

No files matched your search

+6 -1
View File
@@ -5,7 +5,12 @@ import type { Plugin } from "vite";
const SW_FILENAME = "sw.js";
const PRECACHE_DIR_PREFIXES = ["assets/"];
const PRECACHE_ROOT_FILES = ["index.html", "manifest.json", "favicon.svg"];
const PRECACHE_ROOT_FILES = [
"index.html",
"manifest.json",
"favicon.svg",
"icons/icon-192x192.png",
];
async function collectFiles(dir: string, base = dir): Promise<string[]> {
const entries = await readdir(dir, { withFileTypes: true });