Skip to content

How to speed up wasm build times for faster development iteration? #3654

Answered by kpreid
bluenote10 asked this question in Q&A
Discussion options

You must be logged in to vote

wasm-pack defaults to a release build (optimized by rustc, like cargo build --release) in addition to running wasm-opt.

You can change both of these at once by running wasm-pack build --dev --target web. It will use the cargo dev profile and will not run wasm-opt.

Also, if you want to disable wasm-opt even for releases, you can configure it using your Cargo.toml.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bluenote10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants