fix: added directive to remove service worker (#834)
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user