import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import { VitePWA } from 'vite-plugin-pwa' export default defineConfig({ plugins: [ react(), VitePWA({ registerType: 'autoUpdate', manifest: { name: 'HNF Manage', short_name: 'Manage', start_url: '/', scope: '/', display: 'standalone', theme_color: '#0f1f35', background_color: '#0f1f35', icons: [ { src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png' }, { src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png' }, ], }, workbox: { navigateFallback: '/index.html', globPatterns: ['**/*.{js,css,html,ico,png,svg}'], }, }), ], })