Skip to content

Commit

Permalink
put sw.js back
Browse files Browse the repository at this point in the history
  • Loading branch information
Erudition committed Sep 18, 2023
1 parent 23a030d commit c8fcf20
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 @@ -11,7 +11,7 @@ export default defineConfig({
VitePWA({ registerType: 'autoUpdate',
// After messing with service worker you may need to rm -rf android/app/src/main/assets/* before sync. https://github.com/ionic-team/capacitor/issues/5430#issuecomment-1042990925
//devOptions: {enabled: true},
filename: 'sw2.js', // useful if cache is sticky
//filename: 'sw2.js', // useful if cache is sticky
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'masked-icon.svg'],
workbox: {
//additionalManifestEntries: ["fallback.html"], // TODO test if this works
Expand Down

0 comments on commit c8fcf20

Please sign in to comment.