preload-webpack-plugin
preload-webpack-plugin copied to clipboard
Spurious </link> closing tags are being emitted
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.