Avoid inline script in index.html
This helps Parcel generate a proper standalone JS bundle.
This commit is contained in:
parent
3f2553291f
commit
c4c0a77162
2 changed files with 5 additions and 6 deletions
4
main.js
Normal file
4
main.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
import { html, render } from "./lib/index.js";
|
||||
import App from "./components/app.js";
|
||||
|
||||
render(html`<${App}/>`, document.body);
|
Loading…
Add table
Add a link
Reference in a new issue