swarm-ui: use absolute asset paths in index.html
Relative hrefs (static/main.js) only resolve correctly for a route one path segment deep - the browser resolves them against the current URL's directory, so a route two-plus segments deep would 404 the JS/CSS silently once this is wired to a real server. Made absolute (/static/main.js), matching what build.mjs's own comment already documents these paths as being served at.
This commit is contained in:
parent
47e89c1c93
commit
22068bd2b1
1 changed files with 5 additions and 5 deletions
|
|
@ -5,13 +5,13 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>hyperhive swarm</title>
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
|
||||
<link rel="stylesheet" href="static/colors.css">
|
||||
<link rel="stylesheet" href="static/theme.css">
|
||||
<link rel="stylesheet" href="static/swarm-ui.css">
|
||||
<link rel="stylesheet" href="static/main.css">
|
||||
<link rel="stylesheet" href="/static/colors.css">
|
||||
<link rel="stylesheet" href="/static/theme.css">
|
||||
<link rel="stylesheet" href="/static/swarm-ui.css">
|
||||
<link rel="stylesheet" href="/static/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="static/main.js"></script>
|
||||
<script type="module" src="/static/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue