forked from renrenio/renren-fast-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
33 lines (33 loc) · 1.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<title>人人快速开发平台</title>
<link href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<% if (process.env.NODE_ENV === 'production') { %>
<!-- 生产环境 -->
<script>
(function () {
var s = document.createElement('script');
s.src = './config/index.js?v=' + new Date().getTime();
document.getElementsByTagName('head')[0].appendChild(s);
})();
</script>
<% }else { %>
<!-- 开发环境 -->
<script>
(function () {
var s = document.createElement('script');
s.src = './static/config/index.js?v=' + new Date().getTime();
document.getElementsByTagName('head')[0].appendChild(s);
})();
</script>
<% } %>
</head>
<body>
<div id="app"></div>
</body>
</html>