Skip to content

Commit

Permalink
Merge pull request #1228 from jinzo/pwa-improvements
Browse files Browse the repository at this point in the history
PWA fix and improvements
  • Loading branch information
tananaev authored Apr 5, 2024
2 parents c5dd2ce + cfa005d commit 9bfde58
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
14 changes: 10 additions & 4 deletions modern/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modern/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"recharts": "^2.10.4",
"redux": "^5.0.1",
"vite": "^5.0.13",
"vite-plugin-pwa": "^0.17.4",
"vite-plugin-pwa": "^0.19.7",
"vite-plugin-svgr": "^4.2.0",
"wellknown": "^0.5.0"
},
Expand Down
3 changes: 3 additions & 0 deletions modern/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ export default defineConfig(() => ({
svgr(),
react(),
VitePWA({
includeAssets: ['favicon.ico', 'apple-touch-icon-180x180.png'],
workbox: {
navigateFallbackDenylist: [/^\/api/],
maximumFileSizeToCacheInBytes: 4000000,
globPatterns: ['**/*.{js,css,html,woff,woff2,mp3}'],
},
manifest: {
short_name: '${title}',
Expand Down

0 comments on commit 9bfde58

Please sign in to comment.