-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite-pwa-config.ts
More file actions
53 lines (51 loc) · 1.12 KB
/
vite-pwa-config.ts
File metadata and controls
53 lines (51 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { VitePWAOptions } from "vite-plugin-pwa";
const PWA_CONFIG: Partial<VitePWAOptions> = {
registerType: "autoUpdate",
manifest: {
name: "React SPA Template",
short_name: "React SPA",
description: "React Single Page Application Template by krish.fyi",
start_url: "/",
icons: [
{
src: "/logo.png",
sizes: "256x256",
type: "image/png",
},
],
screenshots: [
{
src: "screenshots/d1.png",
sizes: "1920x1080",
form_factor: "wide",
type: "image/png",
},
{
src: "screenshots/d2.png",
sizes: "1920x1080",
form_factor: "wide",
type: "image/png",
},
{
src: "screenshots/p1.png",
sizes: "828x1792",
form_factor: "narrow",
type: "image/png",
},
{
src: "screenshots/p2.png",
sizes: "828x1792",
form_factor: "narrow",
type: "image/png",
},
],
theme_color: "???",
},
workbox: {
globPatterns: ["**/*.{png,svg,js,css,html}"],
},
devOptions: {
enabled: true,
},
};
export default PWA_CONFIG;