Wasm-pack: watch command

Created on 7 Dec 2018  路  4Comments  路  Source: rustwasm/wasm-pack

馃挕 Feature description

It seems that a "watch source" is missing for the build subcommand.

Workaround

First, install fswatch on your system; then, at the root of your project :

fswatch -o -r ./src|xargs -I {} wasm-pack build --debug
feature request next release to-do

Most helpful comment

Here is another solution using cargo-watch:

cargo watch -i .gitignore -i "pkg/*" -s "wasm-pack build"

All 4 comments

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"

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Outpox picture Outpox  路  4Comments

grovesNL picture grovesNL  路  4Comments

TorstenStueber picture TorstenStueber  路  3Comments

mgattozzi picture mgattozzi  路  4Comments

rpjohnst picture rpjohnst  路  5Comments