add vitejsPWA
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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',
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
})
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user