import { VitePWA } from 'vite-plugin-pwa'; import { defineConfig } from 'vite' // https://vitejs.dev/config/ export default defineConfig({ plugins: [VitePWA({ registerType: 'autoUpdate', injectRegister: 'script-defer', pwaAssets: { disabled: false, config: true, }, manifest: { name: 'budget-manager', short_name: 'BM', description: 'Application for finance management', theme_color: '#ffffff', }, workbox: { globPatterns: ['**/*.{js,css,html,svg,png,ico}'], cleanupOutdatedCaches: true, clientsClaim: true, }, devOptions: { enabled: true, // navigateFallback: 'index.html', // suppressWarnings: true, type: 'classic', }, })], })