Favicon with Meter?

I am trying to load favicon into my Meteor project, but I cannot get it to work. I tried using this tutorial, but when I mentioned the link in my HTML, nothing happened. And what do they mean in a / public directory? I don't have a / public directory, should I just put my favicon.ico in the root directory?

+4
source share
2 answers

The directory publicdoes not exist by default - you just need to create it. Meteor uses the directory publicat the root of your application to serve simple files, rather than linking them in the application. For a tag to <link rel="icon">work, it must point to a file that exists in public. Please note that the icon’s URL will not contain the path "public/"β€” the files are in public, as if they were in the root directory of your web server.

Meteor , .meteor. public, private, client, server lib . . . Meteor :

, Meteor public, Rails Django. , favicon.ico, robots.txt .

+7
  • client/header.html: <head><link rel='icon' href='/favicon.ico'></head>
  • favicon.ico /public.
  • , .
+2
source

Source: https://habr.com/ru/post/1534341/


All Articles