Skip to content

Commit

Permalink
Merge pull request #593 from rustwasm/doc-out
Browse files Browse the repository at this point in the history
doc(build): add entry for --out-dir
  • Loading branch information
alexcrichton authored Mar 22, 2019
2 parents 5921f1a + 21ebfb9 commit ef745bf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/src/commands/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ wasm-pack build examples/js-hello-world
This path should point to a directory that contains a `Cargo.toml` file. If no
path is given, the `build` command will run in the current directory.

## Output Directory

By default, `wasm-pack` will generate a directory for it's build output called `pkg`.
If you'd like to customize this you can use the `--out-dir` flag.

```
wasm-pack build --out-dir out
```

The above command will put your build artifacts in a directory called `out`, instead
of the default `pkg`.

## Profile

The `build` command accepts an optional profile argument: one of `--dev`,
Expand Down

0 comments on commit ef745bf

Please sign in to comment.