user1844086
user1844086

Reputation:

RE: Installing favicon with serve-favicon : where's the favicon.ico file?

I installed favicon using "npm install serve-favicon". The subsequent requirement statements all show something like

var favicon = require('serve-favicon');
app.use(favicon(__dirname + '/public/images/favicon.ico'));

...but a favicon.ico file was not installed as part of the npm install . What's up with that? Is favicon.ico just a dummy text file that I should make? Or should it have been automatically installed with everything else?

Thanks for your help!

Upvotes: 0

Views: 648

Answers (1)

AndersW
AndersW

Reputation: 48

You need to supply your own icon. That is basically any image, encoded into the .ico format.

Here is a simple site that lets you upload a regular image and get the corresponding .ico verison back.

Upvotes: 0

Related Questions