Skip to content

Commit

Permalink
Updated service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
notangelmario committed Oct 11, 2022
1 parent 35f8d9e commit be5f6e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import monaco from "./lib/monaco";
//@ts-ignore
import { registerSW } from 'virtual:pwa-register'
import { initStore } from "./lib/store";
import { initEditor } from "./lib/editor";
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
"skipLibCheck": true,
"types": [
"vite-plugin-pwa/client"
]
},
"include": ["src"]
}
2 changes: 2 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default defineConfig({
injectRegister: null,
registerType: "prompt",
workbox: {
skipWaiting: true,
clientsClaim: true,
cleanupOutdatedCaches: true,
maximumFileSizeToCacheInBytes: 30000000
}
Expand Down

0 comments on commit be5f6e4

Please sign in to comment.