Skip to content

Commit b30b331

Browse files
authored
🚑 disable pwa (#23)
1 parent 11c856a commit b30b331

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

.changeset/slimy-pianos-know.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"vsit": patch
3+
---
4+
5+
disable pwa

packages/client/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* @refresh granular */
22
import Home from './pages/index'
33

4-
import { registerSW } from 'virtual:pwa-register'
4+
// import { registerSW } from 'virtual:pwa-register'
55

6-
registerSW({ immediate: true })
6+
// registerSW({ immediate: true })
77

88
export default function App() {
99
return (

packages/client/vite.config.ts

+15-15
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'node:path'
33
import { defineConfig } from 'vite'
44
// import { VitePluginDocument } from 'vite-plugin-document'
55
import inspect from 'vite-plugin-inspect'
6-
import { VitePWA } from 'vite-plugin-pwa'
6+
// import { VitePWA } from 'vite-plugin-pwa'
77
import solid from 'vite-plugin-solid'
88
import { PluginVit } from 'vsit'
99

@@ -13,20 +13,20 @@ export default defineConfig({
1313
PluginVit(),
1414
solid(),
1515
// Use injectManifest just cache from esm.sh
16-
VitePWA({
17-
srcDir: 'src',
18-
filename: 'sw.ts',
19-
strategies: 'injectManifest',
20-
injectRegister: false,
21-
manifest: false,
22-
devOptions: {
23-
enabled: false,
24-
type: 'module',
25-
},
26-
injectManifest: {
27-
injectionPoint: undefined,
28-
},
29-
}),
16+
// VitePWA({
17+
// srcDir: 'src',
18+
// filename: 'sw.ts',
19+
// strategies: 'injectManifest',
20+
// injectRegister: false,
21+
// manifest: false,
22+
// devOptions: {
23+
// enabled: false,
24+
// type: 'module',
25+
// },
26+
// injectManifest: {
27+
// injectionPoint: undefined,
28+
// },
29+
// }),
3030
// Not working in solidjs
3131
// pages(),
3232
// svgrs(),

0 commit comments

Comments
 (0)