How to change Angular CLI favicon

后端 未结 30 1672
谎友^
谎友^ 2020-12-07 16:32

How can I change the default favicon that is set by the Angular CLI?

I have tried many things, but it always shows the Angular logo as the favicon, even though I hav

30条回答
  •  醉话见心
    2020-12-07 16:58

    as simple and easy as :

    1. add your icon or png in the same directory as favicon
    2. edit .angular-cli.json, in assets remove favicon.ico put yours in place
    3. edit index.html, search favicon and put yours in place
    4. run ng serve again

    that's done

提交回复
热议问题