From dbf765dff45fc46b3885f32ca51fc6cdc9749ab0 Mon Sep 17 00:00:00 2001 From: klangner Date: Sat, 12 Sep 2020 15:10:35 +0200 Subject: [PATCH] working webpack --- demo/README.md | 4 ++++ demo/src/lib.rs | 2 +- demo/www | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 160000 demo/www diff --git a/demo/README.md b/demo/README.md index ad7baa8..4f2b82a 100644 --- a/demo/README.md +++ b/demo/README.md @@ -1,6 +1,10 @@ # Demo application for mapgen +## Build the project: +``` +wasm-pack build +``` This app uses: * [Urizen OneBit Tilesets](https://vurmux.itch.io/urizen-onebit-tilesets) \ No newline at end of file diff --git a/demo/src/lib.rs b/demo/src/lib.rs index 1e83b62..639b37e 100644 --- a/demo/src/lib.rs +++ b/demo/src/lib.rs @@ -11,7 +11,7 @@ pub fn main() -> Result<(), JsValue> { // Manufacture the element we're gonna append let val = document.create_element("p")?; - val.set_inner_html("Hello from Rust!"); + val.set_inner_html("Hello from Rust! 1"); body.append_child(&val)?; diff --git a/demo/www b/demo/www new file mode 160000 index 0000000..9ac3dff --- /dev/null +++ b/demo/www @@ -0,0 +1 @@ +Subproject commit 9ac3dff9ebea4675e5c478bcdcbc0fd547d1529f