We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a22bf commit 29703a8Copy full SHA for 29703a8
vite.config.ts
@@ -1,7 +1,13 @@
1
-import { defineConfig } from 'vite'
2
-import react from '@vitejs/plugin-react'
+import react from "@vitejs/plugin-react";
+import { defineConfig } from "vite";
3
+import { VitePWA } from "vite-plugin-pwa";
4
5
// https://vitejs.dev/config/
6
export default defineConfig({
- plugins: [react()]
7
-})
+ plugins: [
8
+ react(),
9
+ VitePWA({
10
+ registerType: "autoUpdate",
11
+ }),
12
+ ],
13
+});
0 commit comments