Skip to content

Commit fe81f92

Browse files
committed
Add manifest and icons
1 parent 71c215b commit fe81f92

7 files changed

Lines changed: 31 additions & 1 deletion

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"scripts": {
77
"test": "npm test",
88
"start": "tsc -w",
9+
"local": "npx serve ./src",
910
"build": "npm run build:clean && npm run build:copy && npm run build:es",
1011
"build:clean": "rm -rf docs",
1112
"build:es": "esbuild ./src/index.ts --bundle --minify --sourcemap --outfile=./docs/bundle.js",
12-
"build:copy": "mkdir docs && cp ./src/index.html ./src/setup.js ./src/styles.css docs",
13+
"build:copy": "mkdir docs && cp ./src/index.html ./src/setup.js ./src/styles.css ./src/images/* ./src/favicon.ico ./src/manifest.json docs",
1314
"prepare": "husky install"
1415
},
1516
"repository": {

src/favicon.ico

15 KB
Binary file not shown.

src/images/icon-192.png

6.67 KB
Loading

src/images/icon-512.png

18.4 KB
Loading

src/images/icon.svg

Lines changed: 1 addition & 0 deletions
Loading

src/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
<title>JS Equality Comparison Table</title>
77
<meta name="viewport" content="width=800">
88
<meta name="description" content="JavaScript abstract VS strict equality comparison operations">
9+
<meta name="theme-color" content="#202e38"/>
10+
<meta name="mobile-web-app-capable" content="yes" />
11+
<meta name="apple-mobile-web-app-capable" content="yes" />
12+
<link rel="shortcut icon" href="/favicon.ico" />
13+
<link rel="apple-touch-icon" href="/images/icons-192.png">
914
<link rel="stylesheet" href="./styles.css">
1015
</head>
1116

src/manifest.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"short_name": "JS Equality",
3+
"name": "JS Equality Comparison Table",
4+
"icons": [
5+
{
6+
"src": "/images/icons-192.png",
7+
"type": "image/png",
8+
"sizes": "192x192"
9+
},
10+
{
11+
"src": "/images/icons-512.png",
12+
"type": "image/png",
13+
"sizes": "512x512",
14+
"purpose": "any maskable"
15+
}
16+
],
17+
"start_url": "/?source=pwa",
18+
"background_color": "#202e38",
19+
"display": "standalone",
20+
"scope": "/",
21+
"theme_color": "#202e38",
22+
"description": "JavaScript abstract VS strict equality comparison operations"
23+
}

0 commit comments

Comments
 (0)