forked from flaviait/ng2-jspm-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.dev.html
29 lines (28 loc) · 877 Bytes
/
index.dev.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
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Demo App</title>
<link rel="stylesheet" href="/main.css">
<script src="/jspm_packages/system.js"></script>
<script src="/jspm.browser-defaults.js"></script>
<script src="/jspm.browser.js"></script>
<script src="/jspm.config.js"></script>
</head>
<base href="/">
<body>
<app>
Loading...
</app>
<script>
System.import("src/main.dev.ts");
System.import("/ports!json").then(function (ports) {
var script = document.createElement("script");
script.src = "//" + location.hostname + ":" + ports.livereload + "/livereload.js";
document.head.appendChild(script);
System.import("systemjs-hot-reloader/hot-reloader").then(function (HotReloader) {
new HotReloader.default("//" + location.hostname + ":" + ports.hmr);
});
});
</script>
</body>
</html>