72b1ee1d3d
Backend (Server.hs): - serveStaticOrSpa: serves static files from --static-dir - SPA fallback: extensionless paths serve index.html - MIME type mapping for html/css/js/png/svg/ico/woff2 Frontend: - ES module imports with import map for Mithril CDN - Build script: tsc + copy index.html + static assets CLI: - --static-dir flag (default: frontend/dist) - scripts/run passes through extra args - Dockerfile CMD points at /usr/local/share/sis/static
22 lines
547 B
HTML
22 lines
547 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Sis — Chore Tracker</title>
|
|
<link rel="stylesheet" href="https://unpkg.com/neobrutalismcss@latest">
|
|
<link rel="stylesheet" href="/style.css">
|
|
<script type="importmap">
|
|
{
|
|
"imports": {
|
|
"mithril": "https://unpkg.com/mithril@2.2.13/mithril.min.js"
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/index.js"></script>
|
|
</body>
|
|
</html>
|