You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+35-1
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,41 @@ The old, 2009 specification for Flexbox is [deprecated and is 2.3x slower than t
111
111
112
112
We are no longer polyfilling it automatically.
113
113
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
+
<metaname="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/
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
+
114
149
#### Anything missing?
115
150
116
151
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
358
393
- moniuch ([moniuch](https://github.com/moniuch))
359
394
- pd4d10 ([pd4d10](https://github.com/pd4d10))
360
395
361
-
362
396
## Releases Before 0.x
363
397
364
398
Please refer to [CHANGELOG-0.x.md](./CHANGELOG-0.x.md) for earlier versions.
0 commit comments