Remove . since path is already relative

This commit is contained in:
Johannes Marbach 2023-09-30 21:50:52 +02:00
parent 9b8d6e7607
commit 2984c3bdfb

View file

@ -52,7 +52,7 @@
<% for (const tag of htmlWebpackPlugin.tags.headTags) {
let path = tag.attributes && tag.attributes.href;
if (path && path.includes("/Inter/")) { %>
<link rel="preload" as="font" href=".<%= path %>" crossorigin="anonymous"/>
<link rel="preload" as="font" href="<%= path %>" crossorigin="anonymous"/>
<% }
} %>