-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Load favicon through html-loader. #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9c21c40
50fce72
edef7d3
22b175d
f35f725
58232c5
38f668b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Fixes #291.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,7 @@ | |
| <head> | ||
| <meta charset="utf-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
| <link rel="shortcut icon" href="${require('./src/favicon.ico')}"> | ||
|
||
| <title>React App</title> | ||
| </head> | ||
| <body> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally
favicon.icospecifically should end up in root build output folder so that browser see it even for files requested from the domain. (Not a big deal but still.)We could declare a loader entry specifically for it with hardcoded
name. However we would have to excludehashfrom its name—otherwise it defeats the point. But then we don’t have a way to bump cache. I wonder if Webpack understandsname: 'favicon.ico?[hash:8].Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does!