Switch to development target
This commit is contained in:
parent
05f0144419
commit
7aecf65a86
2
Makefile
2
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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue