Search code examples
faviconparceljs

How to add a favicon to a static webpage made using parcel.js?


I'm using parcel.js to build a basic static website (so HTML, CSS and front end JS only, but node / npm / parcel.js used for building).

I'd like to set a favicon. What's the best / simplest way to do this?


Solution

  • At your <head> tag at your html file you can use

    <link rel="icon" href="favicon.ico" />