Make room-planner installable as a PWA
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
35a3f0044e
commit
e49fa14856
7 changed files with 6323 additions and 2 deletions
|
|
@ -1,7 +1,31 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
|
||||
export default defineConfig({
|
||||
base: '/room-planner/',
|
||||
plugins: [react()],
|
||||
plugins: [
|
||||
react(),
|
||||
VitePWA({
|
||||
registerType: 'autoUpdate',
|
||||
manifest: {
|
||||
name: 'Room Planner',
|
||||
short_name: 'Rooms',
|
||||
start_url: '/room-planner/',
|
||||
scope: '/room-planner/',
|
||||
display: 'standalone',
|
||||
theme_color: '#1a5276',
|
||||
background_color: '#1a5276',
|
||||
icons: [
|
||||
{ src: '/room-planner/icons/icon-192.png', sizes: '192x192', type: 'image/png' },
|
||||
{ src: '/room-planner/icons/icon-512.png', sizes: '512x512', type: 'image/png' },
|
||||
],
|
||||
},
|
||||
workbox: {
|
||||
navigateFallback: '/room-planner/index.html',
|
||||
navigateFallbackDenylist: [/\/api\//],
|
||||
globPatterns: ['**/*.{js,css,html,ico,png,svg}'],
|
||||
},
|
||||
}),
|
||||
],
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue