Skip to content

Commit 652f4c7

Browse files
DRBragghaoqunjiang
authored andcommitted
docs: explain pwa head/manifest icons (#5408)
1 parent e311b06 commit 652f4c7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/core-plugins/pwa.md

+26
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,30 @@ file, or the `"vue"` field in `package.json`.
8383
- start_url: `'.'`
8484
- display: `'standalone'`
8585
- theme_color: `pwa.themeColor`
86+
- icons: `[
87+
{
88+
'src': './img/icons/android-chrome-192x192.png',
89+
'sizes': '192x192',
90+
'type': 'image/png'
91+
},
92+
{
93+
'src': './img/icons/android-chrome-512x512.png',
94+
'sizes': '512x512',
95+
'type': 'image/png'
96+
},
97+
{
98+
'src': './img/icons/android-chrome-maskable-192x192.png',
99+
'sizes': '192x192',
100+
'type': 'image/png',
101+
'purpose': 'maskable'
102+
},
103+
{
104+
'src': './img/icons/android-chrome-maskable-512x512.png',
105+
'sizes': '512x512',
106+
'type': 'image/png',
107+
'purpose': 'maskable'
108+
}
109+
]`
86110

87111
- **pwa.manifestCrossorigin**
88112

@@ -106,6 +130,8 @@ file, or the `"vue"` field in `package.json`.
106130

107131
Change these values to use different paths for your icons. As of v4.3.0, you can use `null` as a value and that icon will not be included.
108132

133+
*NOTE:* These icons are only used to generate the meta tags in the `<head>` of your HTML doc. To change the icon paths for your manifest please use `pwa.manifestOptions.icons`
134+
109135
### Example Configuration
110136

111137
```js

0 commit comments

Comments
 (0)