From 562ee0e5a1a0f1b01bec48b54025e85f5e953717 Mon Sep 17 00:00:00 2001 From: Ricardo Varanda Date: Mon, 9 Jan 2017 10:25:14 +0000 Subject: [PATCH 1/2] Updating incorrect target option --- docs/documentation/build.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/documentation/build.md b/docs/documentation/build.md index 2ea2c32850e5..6589fe970dd0 100644 --- a/docs/documentation/build.md +++ b/docs/documentation/build.md @@ -4,7 +4,7 @@ `ng build` compiles the application into an output directory ## Options -`--target` (`-t`, `-dev`, `prod`) define the build target +`--target` (`-t`, `-dev`, `-prod`) define the build target `--environment` (`-e`) @@ -16,4 +16,4 @@ `--base-href` (`-bh`) base url for the application being built -`--aot` flag whether to build using Ahead of Time compilation \ No newline at end of file +`--aot` flag whether to build using Ahead of Time compilation From 41c22ef1b0628c8fe45e34f4138282ba395a5b28 Mon Sep 17 00:00:00 2001 From: Ricardo Varanda Date: Mon, 9 Jan 2017 10:45:22 +0000 Subject: [PATCH 2/2] Updated to further clarify build flags --- docs/documentation/build.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/documentation/build.md b/docs/documentation/build.md index 6589fe970dd0..5df0abeee42a 100644 --- a/docs/documentation/build.md +++ b/docs/documentation/build.md @@ -4,9 +4,25 @@ `ng build` compiles the application into an output directory ## Options -`--target` (`-t`, `-dev`, `-prod`) define the build target +`--target` (`-t`) define the build target -`--environment` (`-e`) +`--environment` (`-e`) defines the build environment + +`--prod` flag to set build target and environment to production + +`--dev` flag to set build target and environment to development + +```bash +# these are equivalent +--target=production --environment=prod +--prod --env=prod +--prod +# and so are these +--target=development --environment=dev +--dev --e=dev +--dev +ng build +``` `--output-path` (`-o`) path where output will be placed