combine all service-worker scripts into a single file to try and ensure included scripts aren't lost

This commit is contained in:
2024-02-14 20:46:34 -07:00
parent ca70b19831
commit f517b09ed7
8 changed files with 75 additions and 28 deletions

View File

@@ -3,7 +3,7 @@
import { register } from "register-service-worker";
if (process.env.NODE_ENV === "production") {
register("/additional-scripts.js", {
register("/sw_scripts-combined.js", {
ready() {
console.log(
"App is being served from cache by a service worker.\n" +