shift73k/assets_old/node_modules/svg-sprite-loader/examples/interop-with-html-webpack-plugin/template.ejs

23 lines
436 B
Text

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<% if (htmlWebpackPlugin.files.sprites) { %>
<% for (var spriteFileName in htmlWebpackPlugin.files.sprites) { %>
<%= htmlWebpackPlugin.files.sprites[spriteFileName] %>
<% } %>
<% } %>
<svg>
<use xlink:href="#twitter"></use>
</svg>
<svg>
<use xlink:href="#facebook"></use>
</svg>
</body>
</html>