Skip to content

Commit cc23e80

Browse files
RicardoVarandahansl
authored andcommitted
chore(docs): Update misleading build target documentation (#3915)
1 parent 338e69b commit cc23e80

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

docs/documentation/build.md

+19-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,25 @@
44
`ng build` compiles the application into an output directory
55

66
## Options
7-
`--target` (`-t`, `-dev`, `prod`) define the build target
7+
`--target` (`-t`) define the build target
88

9-
`--environment` (`-e`)
9+
`--environment` (`-e`) defines the build environment
10+
11+
`--prod` flag to set build target and environment to production
12+
13+
`--dev` flag to set build target and environment to development
14+
15+
```bash
16+
# these are equivalent
17+
--target=production --environment=prod
18+
--prod --env=prod
19+
--prod
20+
# and so are these
21+
--target=development --environment=dev
22+
--dev --e=dev
23+
--dev
24+
ng build
25+
```
1026

1127
`--output-path` (`-o`) path where output will be placed
1228

@@ -16,4 +32,4 @@
1632

1733
`--base-href` (`-bh`) base url for the application being built
1834

19-
`--aot` flag whether to build using Ahead of Time compilation
35+
`--aot` flag whether to build using Ahead of Time compilation

0 commit comments

Comments
 (0)