It seems that a "watch source" is missing for the build subcommand.
First, install fswatch on your system; then, at the root of your project :
fswatch -o -r ./src|xargs -I {} wasm-pack build --debug
i think this sounds great! once i get 0.6.0 out the door we can schedule this for the next release
Here is another solution using cargo-watch:
cargo watch -i .gitignore -i "pkg/*" -s "wasm-pack build"
update! looking to do this soon :) cc @fitzgen https://github.com/rustwasm/rfcs/pull/10/commits/8aae141bb09eb91b50a53e74bc33bd95813b9da9
there's a draft implementation of this (and the proposed serve command from rustwasm/rfcs#10 as well) in #745, for what it's worth
Most helpful comment
Here is another solution using
cargo-watch: