forked from docschina/webpack.js.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.ejs
executable file
·48 lines (40 loc) · 1.65 KB
/
template.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.context.title %></title>
<meta name="description" content="<%= htmlWebpackPlugin.options.context.description %>">
<meta name="keywords" content="<%= htmlWebpackPlugin.options.context.keywords %>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#2B3A42">
<link rel="shortcut icon" href="/assets/favicon.ico">
<!--<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,600|Source+Sans+Pro:400,400i,500,600" rel="stylesheet">-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
<% for (var file of htmlWebpackPlugin.options.context.cssFiles) { %>
<link href="<%= file %>" rel="stylesheet">
<% } %>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?39edd8e76884f07399be96cd422c9af3";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
</head>
<body>
<%- webpackConfig.html %>
<% for (var script of htmlWebpackPlugin.options.context.jsFiles) { %>
<script src="<%= script %>"></script>
<% } %>
<script>
((window.gitter = {}).chat = {}).options = {
room: 'webpack/webpack',
activationElement: false
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
</body>
</html>