Move registerSW out

This commit is contained in:
nimbleghost 2023-06-30 08:59:20 +02:00
parent 57bd37ef2f
commit 0b918464c1
4 changed files with 35 additions and 27 deletions

View file

@ -16,6 +16,7 @@ export default defineConfig(({ mode }) => ({
react(),
VitePWA({
registerType: "autoUpdate",
// see registerSW.js imported by index.jsx
injectRegister: null,
strategies: "injectManifest",
devOptions: {