Skip to content

Commit ef745bf

Browse files
authored
Merge pull request #593 from rustwasm/doc-out
doc(build): add entry for --out-dir
2 parents 5921f1a + 21ebfb9 commit ef745bf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/src/commands/build.md

+12
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ wasm-pack build examples/js-hello-world
2020
This path should point to a directory that contains a `Cargo.toml` file. If no
2121
path is given, the `build` command will run in the current directory.
2222

23+
## Output Directory
24+
25+
By default, `wasm-pack` will generate a directory for it's build output called `pkg`.
26+
If you'd like to customize this you can use the `--out-dir` flag.
27+
28+
```
29+
wasm-pack build --out-dir out
30+
```
31+
32+
The above command will put your build artifacts in a directory called `out`, instead
33+
of the default `pkg`.
34+
2335
## Profile
2436

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

0 commit comments

Comments
 (0)