-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
33 lines (33 loc) · 1.29 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" />
<!-- <link rel="icon" href="/favicon.ico" /> -->
<link rel="icon" href="/<%= projectPath %>/assets/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title><%= title %></title>
<script>
// eruda 调试
;(function () {
var src = '//cdn.jsdelivr.net/npm/eruda';
if (!/eruda=true/.test(window.location) && localStorage.getItem('active-eruda') != 'true') return;
document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
document.write('<scr' + 'ipt>eruda.init();</scr' + 'ipt>');
})();
// vconsole 调试
;(function () {
var src = 'https://unpkg.com/vconsole/dist/vconsole.min.js';
if (!/vconsole=true/.test(window.location) && localStorage.getItem('active-vconsole') != 'true') return;
document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
document.write('<scr' + 'ipt>new window.VConsole();</scr' + 'ipt>');
})();
</script>
<script>
this.globalThis || (this.globalThis = this)
</script>
</head>
<body>
<div id="app"></div>
<script src="/<%= projectPath %>/main.ts" type="module"></script>
</body>
</html>