How to change Angular CLI favicon

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

    Make a icon image with the extension .ico and copy and replace it with default favicon file in src folder.

    index.html:

    
    

    angular.json:

    **"assets": [
              "src/favicon.ico",
              "src/assets"
            ],**
    

提交回复
热议问题