Skip to content

Commit 5f94f54

Browse files
committed
fix: ignore empty tags generated by favicons
fix #260
1 parent 67b3b9f commit 5f94f54

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ class FaviconsWebpackPlugin {
192192

193193
htmlPluginData.assetTags.meta.push(
194194
...faviconCompilation.tags
195+
.filter(tag => tag && tag.length)
195196
.map(tag => parse5.parseFragment(tag).childNodes[0])
196197
.map(({ tagName, attrs }) => {
197198
const htmlTag = {

0 commit comments

Comments
 (0)