How to set favicon.ico properly on vue.js webpack project?

前端 未结 3 1110
长情又很酷
长情又很酷 2020-11-30 23:34

I have created a vue webpack project using vue-cli.

vue init webpack myproject

And then ran the project under

3条回答
  •  天涯浪人
    2020-12-01 00:26

    For some reason, the above solutions did not work for me before converting the default favicon.ico file to favicon.png and renaming it to favicon-xyz.png e.g. (I have put this file in /public folder) and edited the index.html file as follows:

    
        
        
        
        .
        .
        .
    
    

    Might be useful for someone.

提交回复
热议问题