aboutsummaryrefslogtreecommitdiff
path: root/modern/vite.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/vite.config.js')
-rw-r--r--modern/vite.config.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/modern/vite.config.js b/modern/vite.config.js
index 9f6df445..47edf477 100644
--- a/modern/vite.config.js
+++ b/modern/vite.config.js
@@ -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}',