Browse Source

fix: remove service worker (#654)

pull/656/head
Dan Ditomaso 1 year ago
committed by GitHub
parent
commit
6cc6986904
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 22
      vite.config.ts

22
vite.config.ts

@ -17,17 +17,17 @@ try {
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
react(), react(),
VitePWA({ // VitePWA({
registerType: "autoUpdate", // registerType: "autoUpdate",
strategies: "generateSW", // strategies: "generateSW",
devOptions: { // devOptions: {
enabled: false, // enabled: true,
}, // },
workbox: { // workbox: {
cleanupOutdatedCaches: true, // cleanupOutdatedCaches: true,
sourcemap: true, // sourcemap: true,
}, // },
}), // }),
viteStaticCopy({ viteStaticCopy({
targets: [ targets: [
{ {

Loading…
Cancel
Save