-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Favicon plugin causes a crash if no link is included #64
Comments
Hello @GingerIndustries, thank you for the issue report. |
it is a really special use case |
I'm of the opinion that if the plugin is enabled but the page lacks a favicon it's an error, since why would they have the plugin if they didn't have a favicon to use it with? |
yes/no
All use cases such as Also, I will resolve this case ( |
But I can display a warning in the console without breaking compilation, for example:
|
@GingerIndustries the crashing is fixed, in this case will be display a warning. |
Cool, thanks! |
Current behaviour
If the HTML file does not include a
<link rel="icon">
tag and theFaviconBundlerPlugin
is enabled, webpack crashes with the following traceback:Expected behaviour
The plugin should probably throw an error explaining that the file lacks a
link
tag.Reproduction Example
Create an HTML file without a
<link rel="icon">
tag, enable theFaviconBundlerPlugin
, and attempt to bundle it with theHtmlBundlerWebpackPlugin
.Environment
The text was updated successfully, but these errors were encountered: