Configure development and production modes
This commit is contained in:
26
server/templates/index.html
Normal file
26
server/templates/index.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/png" href="/thumb.png" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Control Panel</title>
|
||||
{% if not dev_mode %}
|
||||
{% for stylesheet in manifest['src/main.ts'].css %}
|
||||
<link rel="stylesheet" href="{{ stylesheet }}"/>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
{% if dev_mode %}
|
||||
<script type="module" src="http://localhost:5173/@vite/client"></script>
|
||||
<script type="module" src="http://localhost:5173/src/main.ts"></script>
|
||||
{% else %}
|
||||
<script type="module" src="{{ manifest['src/main.ts'].file }}"></script>
|
||||
{% endif %}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user