junlin
junlin

Reputation: 2035

Html favicon not showing up

My localhost web page hadn't show favicon, and also not found in Network request:

enter image description here enter image description here

The webpack-dev-server host the web page including index.html, favicon and other files:

enter image description here

The favicon.ico can be accessed from http://localhost:8080/favicon.ico in browser.

Upvotes: 0

Views: 1555

Answers (2)

junlin
junlin

Reputation: 2035

It's cache problem. I configured other port in webpack devServer and works. Thanks @Hardik's

Upvotes: 2

Shiv Kumar Baghel
Shiv Kumar Baghel

Reputation: 2480

check webpack setting for icon

 {
    test: /\.(ico)$/,
    use: 'file-loader?name=assets/[name].[ext]'
  }

Upvotes: 1

Related Questions