From a36da4e7bf1d3e50de41d1fe5de12c8d89ebde85 Mon Sep 17 00:00:00 2001 From: Samuel Rounce Date: Thu, 15 Aug 2019 01:34:30 +0100 Subject: [PATCH] `index.html` now uses `main.js` as entry-point Removed entry-point shim code from `index.html` and moved it into `main.js` --- index.html | 11 ++--------- main.js | 6 ++++++ 2 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 main.js diff --git a/index.html b/index.html index ab7d72e..1f7593f 100644 --- a/index.html +++ b/index.html @@ -4,17 +4,10 @@ Yew + - - + \ No newline at end of file diff --git a/main.js b/main.js new file mode 100644 index 0000000..d35e64b --- /dev/null +++ b/main.js @@ -0,0 +1,6 @@ +import init, { run_app } from './pkg/yew_wasm_pack_minimal.js'; +async function main() { + await init('/pkg/yew_wasm_pack_minimal_bg.wasm'); + run_app(); +} +main() \ No newline at end of file