-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (31 loc) · 1.25 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript">
if (location.href.indexOf('#') === -1) {
location.href = location.href + '?#/';
} else {
if(location.href.slice(0, location.href.indexOf('#')).indexOf('?') === -1) {
location.href = location.href.slice(0, location.href.indexOf('#')) + '?' + location.hash;
}
}
</script>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title><%= htmlWebpackPlugin.options.title %></title>
<% for (var i in htmlWebpackPlugin.options.cdn.css) { %>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.cdn.css[i] %>"><% } %>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
<%= htmlWebpackPlugin.files.webpackManifest %>
<% if (process.env.NODE_ENV === 'development') { %>
<% for (var i in htmlWebpackPlugin.options.cdn.testjs) { %>
<script src="<%= htmlWebpackPlugin.options.cdn.testjs[i] %>"></script><% } %>
<% } else { %>
<% for (var i in htmlWebpackPlugin.options.cdn.js) { %>
<script src="<%= htmlWebpackPlugin.options.cdn.js[i] %>"></script><% } %>
<% } %>
</body>
</html>