template.html 648 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title><%= htmlWebpackPlugin.options.title %></title>
  6. <%
  7. if (htmlWebpackPlugin.options.manifest) {
  8. %><link rel="manifest" href="<%= htmlWebpackPlugin.options.manifest %>"><%
  9. }
  10. htmlWebpackPlugin.options.css.forEach(url => {
  11. %><link rel="stylesheet" href="<%= url %>"><%
  12. });
  13. htmlWebpackPlugin.options.inlineSource && htmlWebpackPlugin.files.css.forEach(file => {
  14. %><style><%= compilation.assets[file.slice(htmlWebpackPlugin.files.publicPath.length)].source() %></style><%
  15. });
  16. htmlWebpackPlugin.options.js.forEach(url => {
  17. %><script src="<%= url %>"></script><%
  18. });
  19. %></head>
  20. <body></body>
  21. </html>