Base solution for your next web application
Open Closed

RE: Angular2 Favicon Not Loading (Azure) #2634


User avatar
0
paradoxit created

When I deploy my project to Azure my favicon does not load. In the network the response is the homepage and not the icon data.

Can someone please advise what changes I need in the web.config to serve the file?

Thanks

David


3 Answer(s)
  • User Avatar
    0
    paradoxit created

    It appears that the favicon is not getting copied into the dist folder on ng build --prod

    Is there a way to include this file each time?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can add it to assets of angular-cli, see <a class="postlink" href="https://github.com/angular/angular-cli/wiki/stories-asset-configuration">https://github.com/angular/angular-cli/ ... figuration</a>.

  • User Avatar
    0
    paradoxit created

    Thanks this is exactly what I was looking for!