Add support for PWA

This commit is contained in:
2025-05-09 14:44:36 +02:00
parent 80977ee896
commit 6a557cc060
7 changed files with 3867 additions and 6 deletions

View File

@@ -1,7 +1,28 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
manifest: {
name: 'Actual Importer',
short_name: 'ActualImporter',
description: 'Simple app to import the transactions to Actual Budget system',
theme_color: '#ffffff',
icons: [
{
src: '/public/vite.svg',
sizes: '512x512',
type: 'image/svg',
}
]
},
devOptions: {
enabled: true
}
})
]
})