html: set URL of stylesheet by href

URL should be set with attribute `href`, `src` is no longer supportd by new browsers
This commit is contained in:
Wiki Wang
2020-04-22 15:46:14 +08:00
committed by Shuanglei Tao
parent 75eb9c543b
commit 2511d2deca
2 changed files with 8777 additions and 8777 deletions

View File

@@ -6,7 +6,7 @@
<title><%= htmlWebpackPlugin.options.title %></title>
<link inline rel="icon" type="image/png" href="favicon.png">
<% for (const css in htmlWebpackPlugin.files.css) { %>
<link inline rel="stylesheet" src="<%= htmlWebpackPlugin.files.css[css] %>">
<link inline rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.files.css[css] %>">
<% } %>
</head>
<body>