Skip to content

Commit

Permalink
fix: ignore empty tags generated by favicons
Browse files Browse the repository at this point in the history
fix #260
  • Loading branch information
jantimon committed Feb 23, 2021
1 parent 67b3b9f commit 5f94f54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ class FaviconsWebpackPlugin {

htmlPluginData.assetTags.meta.push(
...faviconCompilation.tags
.filter(tag => tag && tag.length)
.map(tag => parse5.parseFragment(tag).childNodes[0])
.map(({ tagName, attrs }) => {
const htmlTag = {
Expand Down

0 comments on commit 5f94f54

Please sign in to comment.