-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (37 loc) · 1.16 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
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Zazu</title>
</head>
<body>
<app></app>
<script src="http://localhost:8080/polyfill.js"></script>
<script src="http://localhost:8080/vendor.js"></script>
<script src="http://localhost:8080/app.js"></script>
<script>
(function () {
function addDevScript (src) {
const script = document.createElement('script');
script.src = src;
script.async = 1;
document.body.appendChild(script);
}
function addDevStyle (href) {
var link = document.createElement('link');
link.type = 'text/css';
link.rel = 'stylesheet';
link.href = href;
document.head.appendChild(link);
}
if (process.env.ENV === 'development') {
// addDevScript('http://localhost:8080/polyfill.js');
// addDevScript('http://localhost:8080/vendor.js');
// addDevScript('http://localhost:8080/app.js');
addDevStyle('http://localhost:8080/app.css');
}
}());
</script>
</body>
</html>