Commit b30b331 1 parent 11c856a commit b30b331 Copy full SHA for b30b331
File tree 3 files changed +22
-17
lines changed
3 files changed +22
-17
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " vsit " : patch
3
+ ---
4
+
5
+ disable pwa
Original file line number Diff line number Diff line change 1
1
/* @refresh granular */
2
2
import Home from './pages/index'
3
3
4
- import { registerSW } from 'virtual:pwa-register'
4
+ // import { registerSW } from 'virtual:pwa-register'
5
5
6
- registerSW ( { immediate : true } )
6
+ // registerSW({ immediate: true })
7
7
8
8
export default function App ( ) {
9
9
return (
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import path from 'node:path'
3
3
import { defineConfig } from 'vite'
4
4
// import { VitePluginDocument } from 'vite-plugin-document'
5
5
import inspect from 'vite-plugin-inspect'
6
- import { VitePWA } from 'vite-plugin-pwa'
6
+ // import { VitePWA } from 'vite-plugin-pwa'
7
7
import solid from 'vite-plugin-solid'
8
8
import { PluginVit } from 'vsit'
9
9
@@ -13,20 +13,20 @@ export default defineConfig({
13
13
PluginVit ( ) ,
14
14
solid ( ) ,
15
15
// 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
+ // }),
30
30
// Not working in solidjs
31
31
// pages(),
32
32
// svgrs(),
You can’t perform that action at this time.
0 commit comments