From c4c0a771625376649620f0600b945a0f2f985937 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 17 Nov 2021 10:58:02 +0100 Subject: [PATCH] Avoid inline script in index.html This helps Parcel generate a proper standalone JS bundle. --- index.html | 7 +------ main.js | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 main.js diff --git a/index.html b/index.html index d4720cf..70a707a 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ gamja IRC client + @@ -11,11 +12,5 @@ - diff --git a/main.js b/main.js new file mode 100644 index 0000000..2b73e7d --- /dev/null +++ b/main.js @@ -0,0 +1,4 @@ +import { html, render } from "./lib/index.js"; +import App from "./components/app.js"; + +render(html`<${App}/>`, document.body);