We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5921f1a + 21ebfb9 commit ef745bfCopy full SHA for ef745bf
docs/src/commands/build.md
@@ -20,6 +20,18 @@ wasm-pack build examples/js-hello-world
20
This path should point to a directory that contains a `Cargo.toml` file. If no
21
path is given, the `build` command will run in the current directory.
22
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
35
## Profile
36
37
The `build` command accepts an optional profile argument: one of `--dev`,
0 commit comments