vite.manifest.config.ts
⎇
Raw
1import type { VitePWAOptions } from "vite-plugin-pwa";
2
3export const pwaOptions: Partial<VitePWAOptions> = {
4 registerType: "autoUpdate",
5 workbox: {
6 globPatterns: ["**/*.{js,wasm,css,html,woff2}"],
7 },
8 manifest: {
9 name: "Pico Pixel Player",
10 description: "A directory based audio player with offline functionality",
11 theme_color: "#3f4d4e",
12 screenshots: [
13 {
14 src: "/assets/screenshot-narrow.png",
15 form_factor: "narrow",
16 sizes: "2302x1921",
17 },
18 {
19 src: "/assets/screenshot-wide.png",
20 form_factor: "wide",
21 sizes: "2302x1278",
22 },
23 ],
24 background_color: "#3f4d4e",
25 icons: [
26 {
27 src: "/assets/favicon-any.svg",
28 sizes: "any",
29 type: "image/svg+xml",
30 purpose: "any",
31 },
32 {
33 src: "/assets/favicon-maskable.svg",
34 sizes: "any",
35 type: "image/svg+xml",
36 purpose: "maskable",
37 },
38 {
39 //Android
40 src: "/assets/favicon-192x192.png",
41 sizes: "192x192",
42 type: "image/png",
43 purpose: "maskable",
44 },
45 {
46 //iOS
47 src: "/assets/favicon-180x180.png",
48 sizes: "180x180",
49 type: "image/png",
50 purpose: "maskable",
51 },
52 ],
53 display: "standalone",
54 display_override: ["standalone", "minimal-ui", "fullscreen"],
55 },
56};
57