How to change Angular CLI favicon

后端 未结 30 1480
谎友^
谎友^ 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:41

    I was playing around with this for a little while. Turns out that the favicon is apparently handled by a node module called @scematics (at least in Angular5).

    You can change your favicon in this folder:

    [YourProjectName]\node_modules\@schematics\angular\application\files\__sourcedir__
    

    In that folder there should be a favicon.ico, that's the one that is loaded. Im pretty shure this doesnt apply to everyone but it worked out for me.

    Hope this helped. Happy coding! :D

提交回复
热议问题