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: README.md
+56-3Lines changed: 56 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,13 @@ You can also use `create-pwa` as a package.json script:
73
73
}
74
74
```
75
75
76
-
The above commands will generate `manifest.json` and `service-worker.js` files, several (8) png icons in the `/icons/` folder in your app's root folder and several (20) launch screen images in the `launch-screen` folder in your app's root folder.
76
+
The above commands will generate:
77
+
78
+
- a `manifest.json` and a `service-worker.js` files
79
+
- several (8) png icons in the `/icons/` folder in your app's root folder
80
+
- several (19) favicons in the `/favicons` folder in your app's root folder
81
+
- several (20) launch screen images in the `launch-screen` folder in your app's root folder
82
+
- a `config.xml` file in your app's root folder - this file is required in Microsoft's browsers
77
83
78
84
You can edit the contents of the `manifest.json` and `service-worker.js` files.
79
85
@@ -83,6 +89,8 @@ In order to create a customized experience for your users, feel advised to revis
83
89
84
90
When the files(`manifest.json` and `service-worker.js`) are ready for production, you need to let the world know about them:
85
91
92
+
Feel adviced to edit the content of the `<TileColor>` tag in the `config.xml` file as it matches the color of your application's status bar on Chrome (found in the `<meta name="color" />` tag);
93
+
86
94
1. Add the following to the `head` of your HTML file(s):
87
95
88
96
```html
@@ -112,7 +120,52 @@ The code above checks for service worker support and then registers a service wo
112
120
113
121
You can read more about Service Workers [here](https://developers.google.com/web/fundamentals/primers/service-workers/).
114
122
115
-
3. Add the following to the `head` of your HTML file(s):
123
+
After that, add references to all icons which were generated by `create-pwa`:
124
+
125
+
3. Add the following favicons and meta tags in the `head` of your HTML file(s):
126
+
127
+
For more info about the favicons and meta tags below see [here](https://github.com/audreyr/favicon-cheat-sheet).
128
+
129
+
```html
130
+
<!-- All Apple touch icons for iPad, iPhone, iPod -->
0 commit comments