Switch to development target

This commit is contained in:
Rob Watson 2020-09-10 22:06:58 +02:00
parent 05f0144419
commit 7aecf65a86
2 changed files with 2 additions and 3 deletions

View File

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

View File

@ -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::<app::App>::new().mount_to_body();