generate-examples-index-webpack-plugin
Version:
Generate an examples index page from your examples folder
48 lines (41 loc) • 1.35 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<title>Examples Index</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link href="<%= htmlWebpackPlugin.options.assets %>/styles/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<div class="container">
<h1>Examples Index</h1>
<h2 class="text-secondary"><%= htmlWebpackPlugin.options.projectName %></h2>
<p>List of examples generated automatically from the <code>examples/</code> folder:</p>
<p class="mb-0">
<small class="text-secondary">
Generated on
<span class="text-info"><%= htmlWebpackPlugin.options.buildDate %></span>
from version
<span class="text-info"><%= htmlWebpackPlugin.options.projectVersion %></span>
</small>
</p>
<p>
<small class="text-secondary">
<a href="<%= htmlWebpackPlugin.options.reportLink %>">
See the <code>webpack-bundle-analyzer</code> results.
</a>
</small>
</p>
<p>
<%= htmlWebpackPlugin.options.buildInfoLink %>
</p>
<p>
<%= htmlWebpackPlugin.options.examplesFilter %>
</p>
<p>
<%= htmlWebpackPlugin.options.examplesIndex %>
</p>
</div>
<script src="<%= htmlWebpackPlugin.options.assets %>/js/index.js"></script>
</body>
</html>