How to load a favicon with Meteor

穿精又带淫゛_ 提交于 2019-11-28 21:18:46
alanning

It should work. Probably either an issue with the path or caching on localhost.

Here's how the favicon should be linked:

<link rel="icon" sizes="16x16 32x32" href="/favicon.ico?v=2">

(Note: the / in the beginning; its important!)

Not sure what your path is like. Everything in the public folder is slapped together and accessible at root, so perhaps try /favicon.png.

I added the favicon.ico in the /public/ directory of my meteor project and it showed up for me!

didn't have to add any lines of code

also if its caching issue maybe rename the favicon.ico to favicon2.ico

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!