diff --git a/docs/src/commands/build.md b/docs/src/commands/build.md index 2305f50..96371fc 100644 --- a/docs/src/commands/build.md +++ b/docs/src/commands/build.md @@ -90,6 +90,17 @@ wasm-pack build examples/js-hello-world --mode no-install | `no-install` | `wasm-pack init` implicitly and create wasm binding without installing `wasm-bindgen`. | | `normal` | do all the stuffs of `no-install` with installed `wasm-bindgen`. | +## Extra options + +The `build` command can pass extra options straight to `cargo build` even if they are not +supported in wasm-pack. To use them you should add standalone `--` argument at the very +end of your command, and all the arguments you want to pass to cargo should go after. +For example to build previous example using unstable cargo offline feature: + +``` +wasm-pack build examples/js-hello-world --mode no-install -- -Z offline +``` +