make it possible to override wasm directory from wasm-dev during build

This commit is contained in:
りき萌 2024-08-23 23:14:33 +02:00
parent c9859124c3
commit 03412722d8
2 changed files with 6 additions and 2 deletions

View file

@ -1,7 +1,7 @@
port := "8080"
serve wasm_profile="wasm-dev": (wasm wasm_profile)
RKGK_PORT={{port}} cargo run -p rkgk
RKGK_PORT={{port}} RKGK_WASM_PATH=target/wasm32-unknown-unknown/{{wasm_profile}} cargo run -p rkgk
wasm profile="wasm-dev":
cargo build -p haku-wasm --target wasm32-unknown-unknown --profile {{profile}}