Skip to content

Commit

Permalink
try just the sw.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
Erudition committed Sep 18, 2023
1 parent 7c47070 commit 2580359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
workbox: {
//additionalManifestEntries: ["fallback.html"], // TODO test if this works
navigateFallback: "error.html",
navigateFallbackDenylist: [new RegExp(".*")],
navigateFallbackDenylist: [new RegExp("sw.js"), new RegExp("sw2.js")],
globPatterns: ['**/*.{html,css,ico,png,svg}'] // TODO removed js so capacitor plugins can work
},
outDir: "../dist", // weird it's not default, it looks for webapp files to cache here
Expand Down

0 comments on commit 2580359

Please sign in to comment.