alterar para ser pwa

This commit is contained in:
Duarte
2026-06-04 19:12:04 +01:00
parent 521987f824
commit 1d88b4cb1a
7 changed files with 4706 additions and 1 deletions
+28 -1
View File
@@ -1,6 +1,33 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
export default defineConfig({
plugins: [sveltekit()]
plugins: [
sveltekit(),
SvelteKitPWA({
registerType: 'autoUpdate',
manifest: {
name: 'Refood One',
short_name: 'RefoodOne',
description: 'Gestão de Beneficiários e Entregas Refood',
theme_color: '#FCB515',
background_color: '#ffffff',
display: 'standalone',
start_url: '/',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png'
}
]
}
})
]
});