File tree 1 file changed +19
-3
lines changed
1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 4
4
` ng build ` compiles the application into an output directory
5
5
6
6
## Options
7
- ` --target ` (` -t ` , ` -dev ` , ` prod ` ) define the build target
7
+ ` --target ` (` -t ` ) define the build target
8
8
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
+ ```
10
26
11
27
` --output-path ` (` -o ` ) path where output will be placed
12
28
16
32
17
33
` --base-href ` (` -bh ` ) base url for the application being built
18
34
19
- ` --aot ` flag whether to build using Ahead of Time compilation
35
+ ` --aot ` flag whether to build using Ahead of Time compilation
You can’t perform that action at this time.
0 commit comments