Browse Source

fix: added directive to remove service worker (#834)

pull/837/head
Dan Ditomaso 9 months ago
committed by GitHub
parent
commit
d8df40816f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      packages/web/package.json
  2. 15
      packages/web/vite.config.ts
  3. 3227
      pnpm-lock.yaml

3
packages/web/package.json

@ -80,8 +80,9 @@
"react-map-gl": "8.0.4",
"react-qrcode-logo": "^3.0.0",
"rfc4648": "^1.5.4",
"vite-plugin-html": "^3.2.2",
"vite": "^7.0.4",
"vite-plugin-html": "^3.2.2",
"vite-plugin-pwa": "^1.0.3",
"zod": "^4.0.5",
"zustand": "5.0.6"
},

15
packages/web/vite.config.ts

@ -5,6 +5,7 @@ import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { defineConfig, loadEnv } from "vite";
import { createHtmlPlugin } from "vite-plugin-html";
import { VitePWA } from "vite-plugin-pwa";
let hash = "";
let version = "v0.0.0";
@ -48,17 +49,9 @@ export default defineConfig(({ mode }) => {
},
},
}),
// VitePWA({
// registerType: "autoUpdate",
// strategies: "generateSW",
// devOptions: {
// enabled: true,
// },
// workbox: {
// cleanupOutdatedCaches: true,
// sourcemap: true,
// },
// }),
VitePWA({
selfDestroying: true,
}),
],
optimizeDeps: {
include: ["react/jsx-runtime"],

3227
pnpm-lock.yaml

File diff suppressed because it is too large
Loading…
Cancel
Save