I have Vue CLI 3 installed with the PWA plugin as well as i18n.
I deleted all the Vue icon files in /public/ (including the PNGs in /public/img/icons), removed the logo.png file in /src/assets, removed the link(rel=icon) tag in /public/index.html, changed manifest.json to remove any reference to the existing Vue icon files, cleared my browser cache and yet when loading the page, I am still getting these hardcoded link tags in my DOM:
<link rel="icon" type="image/png" sizes="32x32" href="/img/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/icons/favicon-16x16.png">
<link rel="apple-touch-icon" href="/img/icons/apple-touch-icon-152x152.png">
<link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87">
<meta name="msapplication-TileImage" content="/img/icons/msapplication-icon-144x144.png">
None of these files exist and none of them are referenced anywhere in my project. The weirdest thing about this is that the default Vue favicon is still being displayed in any browser I use, even after deleting ALL the files, so it's definitely not a client-side cache thing.
How can I remove these?
manifest
file. can you check that? – MarengoiconPaths
– Letty{ "name": "client", "short_name": "client" ], "start_url": "./index.html", "display": "standalone", "background_color": "#000000", "theme_color": "#4DBA87" }
– Brewerymodule.exports = { devServer: { host: '0.0.0.0', disableHostCheck: true }, pluginOptions: { i18n: { locale: 'en', fallbackLocale: 'en', localeDir: 'locales', enableInSFC: true } } }
– Breweryindex.html
file in apublic
folder that contains at least 1 favicon entry? If no favicons are defined at all, it uses the last one it cached. – Recruitmentindex.html
and cleaned the cache – Breweryindex.html
, nor in yourmanifest.json
, the next likely culprit is something you have in yourvue.config.js
. – Recruitment