Just getting started with Nuxt and attempting to update the default favicon for my project.
I swapped out the favicon.png
and favicon.ico
files in my static
directory, but unfortunately, it didn't take effect.
Next, I tried replacing the favicon.png
and favicon.ico
files in my dist
folder, but still no luck.
Even after inserting the correct files created by various favicon generator websites into my dist/_nuxt/icons
directory, the change did not reflect on the site.
Here's a snippet from my nuxt.config.js
:
head: {
title: "My First Nuxt Project - Main Page",
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: pkg.description }
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.png' }],
},
Is there something crucial that I might be overlooking?