working webpack

This commit is contained in:
klangner 2020-09-12 15:10:35 +02:00
parent 259006ce56
commit dbf765dff4
3 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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)?;

1
demo/www Submodule

@ -0,0 +1 @@
Subproject commit 9ac3dff9ebea4675e5c478bcdcbc0fd547d1529f