expressjs / serve-favicon

favicon serving middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use png favicon files?

techyrajeev opened this issue · comments

I have a file named favicon.png and want to use it with serve-favicon.

Hi @techyrajeev you cannot with this module. This module is exclusively for serving the "default, implicit favicon", which is GET /favicon.ico. For additional vendor-specific icons that require HTML markup, additional middleware is required to serve the relevant files, for example serve-static.