mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
add vite build for remote
This commit is contained in:
parent
74554d9725
commit
48917547b2
7 changed files with 129 additions and 196 deletions
|
|
@ -1,23 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Content-Security-Policy" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Feishin Remote</title>
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
const version = encodeURIComponent("<%= version %>");
|
||||
const prod = encodeURIComponent("<%= prod %>");
|
||||
navigator.serviceWorker.register(`/worker.js?version=${version}&prod=${prod}`);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
27
src/remote/index.html
Normal file
27
src/remote/index.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="Content-Security-Policy" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Feishin Remote</title>
|
||||
<link rel="manifest" href="manifest.json">
|
||||
<script>
|
||||
if ('serviceWorker' in navigator) {
|
||||
const version = encodeURIComponent("<%= version %>");
|
||||
const prod = encodeURIComponent("<%= prod %>");
|
||||
navigator.serviceWorker.register(`/worker.js?version=${version}&prod=${prod}`);
|
||||
}
|
||||
</script>
|
||||
<link rel="icon" href="./favicon.ico">
|
||||
<script defer="defer" src="./remote.js"></script>
|
||||
<script defer="defer" src="./worker.js"></script>
|
||||
<link rel="stylesheet" href="./remote.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue