preload-webpack-plugin icon indicating copy to clipboard operation
preload-webpack-plugin copied to clipboard

Spurious </link> closing tags are being emitted

Open dairiki opened this issue 3 years ago • 0 comments

The link elements injected into the HTML are not being properly marked as void elements. This causes html-webpack-plugin to generate spurious </link> closing tags upon serialization. (Harmless, but ugly.)

The fix is to explicitly set voidTag: true in the created link tags here. Even better, probably, might be to use createHtmlTagObject to create the tag object.

dairiki avatar Apr 06 '21 16:04 dairiki