Skip to content

Commit da92cec

Browse files
ft: add manifest.json and icons
1 parent d3dcc18 commit da92cec

15 files changed

+62
-1
lines changed

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<title>PWA generator</title>
99
<meta name="description" content="Generate your PWA minifest easily.">
10+
<link rel="manifest" href="/manifest.json">
1011
</head>
1112

1213
<body>

public/favicon.ico

5.12 KB
Binary file not shown.

public/icon-512.png

76.9 KB
Loading

public/icons/icon-128x128.png

15.4 KB
Loading

public/icons/icon-144x144.png

20.4 KB
Loading

public/icons/icon-152x152.png

22.5 KB
Loading

public/icons/icon-192x192.png

32.1 KB
Loading

public/icons/icon-256x256.png

43.5 KB
Loading

public/icons/icon-384x384.png

112 KB
Loading

public/icons/icon-48x48.png

3.13 KB
Loading

public/icons/icon-512x512.png

186 KB
Loading

public/icons/icon-72x72.png

6.12 KB
Loading

public/icons/icon-96x96.png

10.2 KB
Loading

public/manifest.json

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"name": "PWA Generator",
3+
"short_name": "PWA Generator",
4+
"icons": [
5+
{
6+
"src": "icons/icon-48x48.png",
7+
"sizes": "48x48",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "icons/icon-72x72.png",
12+
"sizes": "72x72",
13+
"type": "image/png"
14+
},
15+
{
16+
"src": "icons/icon-96x96.png",
17+
"sizes": "96x96",
18+
"type": "image/png"
19+
},
20+
{
21+
"src": "icons/icon-128x128.png",
22+
"sizes": "128x128",
23+
"type": "image/png"
24+
},
25+
{
26+
"src": "icons/icon-144x144.png",
27+
"sizes": "144x144",
28+
"type": "image/png"
29+
},
30+
{
31+
"src": "icons/icon-152x152.png",
32+
"sizes": "152x152",
33+
"type": "image/png"
34+
},
35+
{
36+
"src": "icons/icon-192x192.png",
37+
"sizes": "192x192",
38+
"type": "image/png"
39+
},
40+
{
41+
"src": "icons/icon-256x256.png",
42+
"sizes": "256x256",
43+
"type": "image/png"
44+
},
45+
{
46+
"src": "icons/icon-384x384.png",
47+
"sizes": "384x384",
48+
"type": "image/png"
49+
},
50+
{
51+
"src": "icons/icon-512x512.png",
52+
"sizes": "512x512",
53+
"type": "image/png"
54+
}
55+
],
56+
"start_url": "/",
57+
"display": "standalone",
58+
"background_color": "#ffffff",
59+
"theme_color": "#ffe324"
60+
}

src/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import './index.css'
55
/**
66
* Register the service worker
77
* */
8-
if ('serviceWorker' in navigator) {
8+
if (import.meta.env.MODE !== 'development' && 'serviceWorker' in navigator) {
99
window.addEventListener('load', () => {
1010
navigator.serviceWorker
1111
.register('/sw.js') // Ensure the scope matches the base path

0 commit comments

Comments
 (0)