Skip to content

Commit 03bab19

Browse files
authored
Merge pull request #22 from devguru99/dev
disabled pwa due to single post page reloading issue
2 parents 5a87981 + 9bf7e9f commit 03bab19

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

vite.config.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ export default defineConfig({
1313
},
1414
plugins: [
1515
react(),
16-
VitePWA({
17-
manifest,
18-
injectRegister: 'auto',
19-
includeAssets: ['favicon.svg', 'favicon.ico', 'robots.txt', 'apple-touch-icon.png'],
20-
// switch to "true" to enable sw on development
21-
devOptions: {
22-
navigateFallbackAllowlist: [/^index.html$/],
23-
enabled: false,
24-
},
25-
workbox: {
26-
globPatterns: ['**/*.{js,css,html}', '**/*.{svg,png,jpg,gif}'],
27-
navigateFallback: '/index.html',
28-
},
29-
}),
16+
// VitePWA({
17+
// manifest,
18+
// injectRegister: 'auto',
19+
// includeAssets: ['favicon.svg', 'favicon.ico', 'robots.txt', 'apple-touch-icon.png'],
20+
// // switch to "true" to enable sw on development
21+
// devOptions: {
22+
// navigateFallbackAllowlist: [/^index.html$/],
23+
// enabled: false,
24+
// },
25+
// workbox: {
26+
// globPatterns: ['**/*.{js,css,html}', '**/*.{svg,png,jpg,gif}'],
27+
// navigateFallback: '/index.html',
28+
// },
29+
// }),
3030
],
3131
resolve: {
3232
alias: {

0 commit comments

Comments
 (0)