File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
packages/@vue/cli-plugin-pwa Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ file, or the `"vue"` field in `package.json`.
9696
9797 ``` js
9898 {
99+ faviconSVG: ' img/icons/favicon.svg' ,
99100 favicon32: ' img/icons/favicon-32x32.png' ,
100101 favicon16: ' img/icons/favicon-16x16.png' ,
101102 appleTouchIcon: ' img/icons/apple-touch-icon-152x152.png' ,
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ const defaultManifest = {
4545}
4646
4747const defaultIconPaths = {
48+ faviconSVG : 'img/icons/favicon.svg' ,
4849 favicon32 : 'img/icons/favicon-32x32.png' ,
4950 favicon16 : 'img/icons/favicon-16x16.png' ,
5051 appleTouchIcon : 'img/icons/apple-touch-icon-152x152.png' ,
@@ -84,6 +85,13 @@ module.exports = class HtmlPwaPlugin {
8485 const assetsVersionStr = assetsVersion ? `?v=${ assetsVersion } ` : ''
8586
8687 // Favicons
88+ if ( iconPaths . faviconSVG != null ) {
89+ data . headTags . push ( makeTag ( 'link' , {
90+ rel : 'icon' ,
91+ type : 'image/svg+xml' ,
92+ href : getTagHref ( publicPath , iconPaths . faviconSVG , assetsVersionStr )
93+ } ) )
94+ }
8795 if ( iconPaths . favicon32 != null ) {
8896 data . headTags . push ( makeTag ( 'link' , {
8997 rel : 'icon' ,
You can’t perform that action at this time.
0 commit comments