-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
23 lines (23 loc) · 840 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Memory King</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./static/iconfont/material-icons.css" />
<link rel="stylesheet" href="./static/vendor/material.min.css">
<script src="./static/vendor/material.min.js"></script>
</head>
<body>
<div id="app"></div>
<script>
// Determine the location of bundle.js based on NODE_ENV varibale (for live coding)
(function() {
const script = document.createElement('script');
script.src = process.env.NODE_ENV === 'development' ? 'http://localhost:9000/dist/bundle.js' : './dist/bundle.js';
script.charset = "UTF-8"; // For correct character encoding
document.write(script.outerHTML);
}());
</script>
</body>
</html>