Skip to content

Commit

Permalink
Self-close link tags
Browse files Browse the repository at this point in the history
Closes #63
  • Loading branch information
jaketrent committed Mar 28, 2018
1 parent d9c7e02 commit e2d24ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ htmlWebpackPlugin.options.scripts = htmlWebpackPlugin.options.scripts || []
<title><%= htmlWebpackPlugin.options.title %></title><%
if (htmlWebpackPlugin.files.favicon) { %>
<link href="<%= htmlWebpackPlugin.files.favicon %>" rel="shortcut icon"><%
<link href="<%= htmlWebpackPlugin.files.favicon %>" rel="shortcut icon" /><%
} %><%
if (htmlWebpackPlugin.options.mobile) { %>
Expand All @@ -33,7 +33,7 @@ htmlWebpackPlugin.options.scripts = htmlWebpackPlugin.options.scripts || []
for (item of htmlWebpackPlugin.options.links) { %><%
if (typeof item === 'string' || item instanceof String) { item = { href: item, rel: 'stylesheet' } } %>
<link<% for (key in item) { %> <%= key %>="<%= item[key] %>"<% } %>><%
<link<% for (key in item) { %> <%= key %>="<%= item[key] %>"<% } %> /><%
} %><%
for (key in htmlWebpackPlugin.files.css) { %><%
Expand All @@ -42,9 +42,9 @@ htmlWebpackPlugin.options.scripts = htmlWebpackPlugin.options.scripts || []
href="<%= htmlWebpackPlugin.files.css[key] %>"
rel="stylesheet"
integrity="<%= htmlWebpackPlugin.files.cssIntegrity[key] %>"
crossorigin="<%= webpackConfig.output.crossOriginLoading %>"><%
crossorigin="<%= webpackConfig.output.crossOriginLoading %>" /><%
} else { %>
<link href="<%= htmlWebpackPlugin.files.css[key] %>" rel="stylesheet"><%
<link href="<%= htmlWebpackPlugin.files.css[key] %>" rel="stylesheet" /><%
} %><%
} %><%
if (htmlWebpackPlugin.options.headHtmlSnippet) { %>
Expand Down

0 comments on commit e2d24ee

Please sign in to comment.