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.js34
1 files changed, 33 insertions, 1 deletions
diff --git a/modern/vite.config.js b/modern/vite.config.js
index 04cff5fb..56ffa1ec 100644
--- a/modern/vite.config.js
+++ b/modern/vite.config.js
@@ -14,5 +14,37 @@ export default defineConfig(() => ({
build: {
outDir: 'build',
},
- plugins: [svgr(), react(), VitePWA()],
+ plugins: [
+ svgr(),
+ react(),
+ VitePWA({
+ workbox: {
+ navigateFallbackDenylist: [/^\/api/],
+ },
+ manifest: {
+ short_name: '${title}',
+ name: '${description}',
+ theme_color: '${colorPrimary}',
+ icons: [
+ {
+ src: 'favicon.ico',
+ sizes: '48x48 32x32 16x16',
+ type: 'image/x-icon',
+ },
+ {
+ src: 'logo192.png',
+ type: 'image/png',
+ sizes: '192x192',
+ purpose: 'any maskable',
+ },
+ {
+ src: 'logo512.png',
+ type: 'image/png',
+ sizes: '512x512',
+ purpose: 'any maskable',
+ },
+ ],
+ },
+ }),
+ ],
}));