Skip to content

Commit 26c9a3d

Browse files
authored
Update CHANGELOG.md
1 parent bf9eca2 commit 26c9a3d

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

CHANGELOG.md

+35-1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,41 @@ The old, 2009 specification for Flexbox is [deprecated and is 2.3x slower than t
111111

112112
We are no longer polyfilling it automatically.
113113

114+
#### How to turn my app into a [Progressive Web App](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app)?
115+
116+
After the regular update procedure above, add these line to `<head>` in `public/index.html`:
117+
118+
```html
119+
<meta name="theme-color" content="#000000">
120+
<!--
121+
manifest.json provides metadata used when your web app is added to the
122+
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
123+
-->
124+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
125+
```
126+
127+
Then create a file called `public/manifest.json` that looks like this:
128+
129+
```js
130+
{
131+
"short_name": "React App",
132+
"name": "Create React App Sample",
133+
"icons": [
134+
{
135+
"src": "favicon.ico",
136+
"sizes": "192x192",
137+
"type": "image/png"
138+
}
139+
],
140+
"start_url": "./index.html",
141+
"display": "standalone",
142+
"theme_color": "#000000",
143+
"background_color": "#ffffff"
144+
}
145+
```
146+
147+
Finally, create `src/registerServiceWorker.js` with [this template](https://github.com/facebookincubator/create-react-app/blob/bf9eca25f519c73f69cff20ac49ce9500e578fe0/packages/react-scripts/template/src/registerServiceWorker.js), [import it](https://github.com/facebookincubator/create-react-app/blob/bf9eca25f519c73f69cff20ac49ce9500e578fe0/packages/react-scripts/template/src/index.js#L4) from `src/index.js` and [call the function it exports](https://github.com/facebookincubator/create-react-app/blob/bf9eca25f519c73f69cff20ac49ce9500e578fe0/packages/react-scripts/template/src/index.js#L8).
148+
114149
#### Anything missing?
115150

116151
This was a large release, and we might have missed something.
@@ -358,7 +393,6 @@ Please [file an issue](https://github.com/facebookincubator/create-react-app/iss
358393
- moniuch ([moniuch](https://github.com/moniuch))
359394
- pd4d10 ([pd4d10](https://github.com/pd4d10))
360395

361-
362396
## Releases Before 0.x
363397

364398
Please refer to [CHANGELOG-0.x.md](./CHANGELOG-0.x.md) for earlier versions.

0 commit comments

Comments
 (0)