import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import { VitePWA } from 'vite-plugin-pwa'; export default defineConfig({ plugins: [ react(), VitePWA({ registerType: 'autoUpdate', injectRegister: 'auto', workbox: { clientsClaim: true, skipWaiting: true, cleanupOutdatedCaches: true, }, manifest: { name: 'Dockly-Pfandsystem', short_name: 'Dockly-Pfand', start_url: '.', display: 'standalone', background_color: '#f8fafc', theme_color: '#051e23', description: 'Digitale Pfand- und Tourenverwaltung', icons: [ { src: 'pfandlogo.png', sizes: '1000x1000', type: 'image/png' }, { src: 'icon-192.png', sizes: '192x192', type: 'image/png' }, { src: 'icon-512.png', sizes: '512x512', type: 'image/png' } ] }, includeAssets: ['icon-192.png', 'icon-512.png', 'pfandlogo.png'], manifestFilename: 'manifest.webmanifest', }) ], build: { outDir: 'dist' }, server: { port: 5173 }, });