Skip to content

Commit 65a891c

Browse files
dscanlanmrmckeb
authored andcommitted
Optimise templates for Lighthouse (#7482)
1 parent ae671dc commit 65a891c

File tree

10 files changed

+32
-2
lines changed

10 files changed

+32
-2
lines changed

packages/react-scripts/template-typescript/public/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
8+
<meta name="description" content="Web site created using create-react-app">
9+
<link rel="apple-touch-icon" href="logo192.png">
810
<!--
911
manifest.json provides metadata used when your web app is installed on a
1012
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Loading
Loading

packages/react-scripts/template-typescript/public/manifest.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@
66
"src": "favicon.ico",
77
"sizes": "64x64 32x32 24x24 16x16",
88
"type": "image/x-icon"
9-
}
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
1020
],
1121
"start_url": ".",
1222
"display": "standalone",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow: /static/

packages/react-scripts/template/public/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
8+
<meta name="description" content="Web site created using create-react-app">
9+
<link rel="apple-touch-icon" href="logo192.png">
810
<!--
911
manifest.json provides metadata used when your web app is installed on a
1012
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Loading
Loading

packages/react-scripts/template/public/manifest.json

+11-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@
66
"src": "favicon.ico",
77
"sizes": "64x64 32x32 24x24 16x16",
88
"type": "image/x-icon"
9-
}
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
1020
],
1121
"start_url": ".",
1222
"display": "standalone",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow: /static/

0 commit comments

Comments
 (0)