Skip to content

Commit

Permalink
Fallback to error so it's clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Erudition committed Sep 18, 2023
1 parent 1550fa1 commit dfd4a47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default defineConfig({
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'masked-icon.svg'],
workbox: {
//additionalManifestEntries: ["fallback.html"], // TODO test if this works
//navigateFallbackDenylist: [/.js/],
navigateFallback: "error.html",
navigateFallbackDenylist: [/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 dfd4a47

Please sign in to comment.