mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-05-01 01:10:44 -05:00
docs: explain pwa head/manifest icons (#5408)
This commit is contained in:
@@ -83,6 +83,30 @@ file, or the `"vue"` field in `package.json`.
|
||||
- start_url: `'.'`
|
||||
- display: `'standalone'`
|
||||
- theme_color: `pwa.themeColor`
|
||||
- icons: `[
|
||||
{
|
||||
'src': './img/icons/android-chrome-192x192.png',
|
||||
'sizes': '192x192',
|
||||
'type': 'image/png'
|
||||
},
|
||||
{
|
||||
'src': './img/icons/android-chrome-512x512.png',
|
||||
'sizes': '512x512',
|
||||
'type': 'image/png'
|
||||
},
|
||||
{
|
||||
'src': './img/icons/android-chrome-maskable-192x192.png',
|
||||
'sizes': '192x192',
|
||||
'type': 'image/png',
|
||||
'purpose': 'maskable'
|
||||
},
|
||||
{
|
||||
'src': './img/icons/android-chrome-maskable-512x512.png',
|
||||
'sizes': '512x512',
|
||||
'type': 'image/png',
|
||||
'purpose': 'maskable'
|
||||
}
|
||||
]`
|
||||
|
||||
- **pwa.iconPaths**
|
||||
|
||||
@@ -100,6 +124,8 @@ file, or the `"vue"` field in `package.json`.
|
||||
|
||||
Change these values to use different paths for your icons.
|
||||
|
||||
*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`
|
||||
|
||||
### Example Configuration
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user