Avoid inline script in index.html

This helps Parcel generate a proper standalone JS bundle.
This commit is contained in:
Simon Ser 2021-11-17 10:58:02 +01:00
parent 3f2553291f
commit c4c0a77162
2 changed files with 5 additions and 6 deletions

4
main.js Normal file
View file

@ -0,0 +1,4 @@
import { html, render } from "./lib/index.js";
import App from "./components/app.js";
render(html`<${App}/>`, document.body);