From 21ebfb9dd052a3026b1d27666672ef2c5ebc2904 Mon Sep 17 00:00:00 2001 From: Ashley Williams Date: Fri, 22 Mar 2019 08:56:06 -0500 Subject: [PATCH] doc(build): add entry for --out-dir --- docs/src/commands/build.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/src/commands/build.md b/docs/src/commands/build.md index cd9ca192..00ab2e9a 100644 --- a/docs/src/commands/build.md +++ b/docs/src/commands/build.md @@ -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`,