rustwasm/create-wasm-app

live reload/automatic recompile for wasm lib?

damccull opened this issue · 0 comments

Summary

The tutorial at https://rustwasm.github.io/docs/book/game-of-life/implementing.html constantly mentions to just wasm-pack build and refresh the webpage, but does not say anything about restarting the npm run start command after each build. Just building doesn't seem to trigger a node recompile to get the updated library into the webpage. I have to restart the node server to get it to load the new version. How can I enable the server to monitor the wasm lib too, or even the .rs files, and automatically rebuild if it detects a change?