diff --git a/Makefile b/Makefile index 96d9ed5..57c0c68 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ all: build build: - wasm-pack build --target web --out-name wasm --out-dir ./static + wasm-pack build --dev --target web --out-name wasm --out-dir ./static build-doc: cargo doc --all --no-deps diff --git a/src/lib.rs b/src/lib.rs index 6edbf31..829180d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,8 +15,7 @@ mod utils; #[wasm_bindgen(start)] pub fn run_app() { - // TODO: fix debug/release setup - // #[cfg(debug_assertions)] + #[cfg(debug_assertions)] panic::set_hook(Box::new(console_error_panic_hook::hook)); App::::new().mount_to_body();