add vitejsPWA

This commit is contained in:
Romulus21
2023-09-24 12:56:20 +02:00
parent 59c6ccafb4
commit ddf04b493f
2 changed files with 20 additions and 1 deletions

View File

@@ -6,8 +6,12 @@
<link rel="icon" href="/favicon.ico" sizes="any"> <link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/favicon.svg" type="image/svg+xml"> <link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="mask-icon" href="/favicon.svg" color="#FFFFFF">
<meta name="theme-color" content="#ffffff">
<title>{{ config('app.name', 'Laravel') }}</title> <title>{{ config('app.name', 'Laravel') }}</title>
<meta name="description" content="Application de suivi météo">
<!-- Fonts --> <!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net"> <link rel="preconnect" href="https://fonts.bunny.net">

View File

@@ -10,6 +10,21 @@ export default defineConfig({
refresh: true, refresh: true,
}), }),
react(), react(),
VitePWA({ registerType: 'autoUpdate' }) VitePWA({
registerType: 'autoUpdate',
manifest: {
name: 'Bermite',
short_name: 'Bermite',
description: 'Une application de suivi météo',
theme_color: '#ffffff',
icons: [
{
src: 'images/weather.png',
sizes: '521x512',
type: 'image/png',
}
]
}
})
], ],
}); });