forked from CringeStudios/gamja
Avoid inline script in index.html
This helps Parcel generate a proper standalone JS bundle.
This commit is contained in:
parent
3f2553291f
commit
c4c0a77162
@ -4,6 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>gamja IRC client</title>
|
<title>gamja IRC client</title>
|
||||||
<link rel="stylesheet" href="./style.css">
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
<script type="module" src="./main.js"></script>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
</head>
|
</head>
|
||||||
@ -11,11 +12,5 @@
|
|||||||
<noscript>
|
<noscript>
|
||||||
<p>Unfortunately gamja requires JavaScript. Please enable it!</p>
|
<p>Unfortunately gamja requires JavaScript. Please enable it!</p>
|
||||||
</noscript>
|
</noscript>
|
||||||
<script type="module">
|
|
||||||
import { html, render } from "./lib/index.js";
|
|
||||||
import App from "./components/app.js";
|
|
||||||
|
|
||||||
render(html`<${App}/>`, document.body);
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user