Skip to content

Commit

Permalink
Merge pull request #719 from kellytk/patch-1
Browse files Browse the repository at this point in the history
Update reference to cargo's `--offline` feature
  • Loading branch information
ashleygwilliams authored Jan 13, 2020
2 parents d525db3 + 1b844c9 commit a05c9ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/commands/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ wasm-pack build examples/js-hello-world --mode no-install
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:
For example, to build the previous example using cargo's offline feature:

```
wasm-pack build examples/js-hello-world --mode no-install -- -Z offline
wasm-pack build examples/js-hello-world --mode no-install -- --offline
```

<hr style="font-size: 1.5em; margin-top: 2.5em"/>
Expand Down

0 comments on commit a05c9ea

Please sign in to comment.