Skip to content

Commit 1a13b59

Browse files
peetiansu
authored andcommitted
Update PWA docs links to point to template package (facebook#8147)
1 parent f314855 commit 1a13b59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: docusaurus/docs/making-a-progressive-web-app.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ the build process will generate a service worker file, but it will not be
1010
registered, so it will not take control of your production web app.
1111

1212
In order to opt-in to the offline-first behavior, developers should look for the
13-
following in their [`src/index.js`](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/src/index.js) file:
13+
following in their [`src/index.js`](https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/src/index.js) file:
1414

1515
```js
1616
// If you want your app to work offline and load faster, you can change
@@ -62,7 +62,7 @@ following into account:
6262
fetched the latest updates that will be available the next time they load the
6363
page (showing a "New content is available once existing tabs are closed." message). Showing
6464
these messages is currently left as an exercise to the developer, but as a
65-
starting point, you can make use of the logic included in [`src/serviceWorker.js`](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/src/serviceWorker.js), which
65+
starting point, you can make use of the logic included in [`src/serviceWorker.js`](https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/src/serviceWorker.js), which
6666
demonstrates which service worker lifecycle events to listen for to detect each
6767
scenario, and which as a default, only logs appropriate messages to the
6868
JavaScript console.
@@ -93,11 +93,11 @@ following into account:
9393
## Progressive Web App Metadata
9494

9595
The default configuration includes a web app manifest located at
96-
[`public/manifest.json`](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/public/manifest.json), that you can customize with
96+
[`public/manifest.json`](https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/public/manifest.json), that you can customize with
9797
details specific to your web application.
9898

9999
When a user adds a web app to their homescreen using Chrome or Firefox on
100-
Android, the metadata in [`manifest.json`](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/public/manifest.json) determines what
100+
Android, the metadata in [`manifest.json`](https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/public/manifest.json) determines what
101101
icons, names, and branding colors to use when the web app is displayed.
102102
[The Web App Manifest guide](https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/)
103103
provides more context about what each field means, and how your customizations

0 commit comments

Comments
 (0)