Skip to content

Commit 62f8f98

Browse files
committed
correct build and serve options
1 parent abddb86 commit 62f8f98

File tree

2 files changed

+44
-16
lines changed

2 files changed

+44
-16
lines changed

docs/documentation/build.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ All builds make use of bundling, and using the `--prod` flag in `ng build --pro
6565
or `ng serve --prod` will also make use of uglifying and tree-shaking functionality.
6666

6767
## Options
68+
`--watch` (`-w`) flag to run builds when files change
69+
6870
`--target` (`-t`) define the build target
6971

7072
`--environment` (`-e`) defines the build environment
@@ -75,14 +77,20 @@ or `ng serve --prod` will also make use of uglifying and tree-shaking functional
7577

7678
`--output-path` (`-po`) path where output will be placed
7779

78-
`--output-hashing` define the output filename cache-busting hashing mode
80+
`--aot` flag whether to build using Ahead of Time compilation
7981

80-
`--watch` (`-w`) flag to run builds when files change
82+
`--sourcemap` (`-sm`) output sourcemaps
8183

82-
`--surpress-sizes` flag to suppress sizes from build output
84+
`--vendor-chunk` (`-vb`) use a separate bundle containing only vendor libraries
8385

8486
`--base-href` (`-bh`) base url for the application being built
8587

86-
`--aot` flag whether to build using Ahead of Time compilation
88+
`--deploy-url` (`-d`) url where files will be deployed
89+
90+
`--verbose` (`-v`) adds more details to output logging
91+
92+
`--progress` (`-pr`) log progress to the console while building
8793

88-
`--extract-css` extract css from global styles onto css files instead of js ones
94+
`--extract-css` (`-ec`) extract css from global styles onto css files instead of js ones
95+
96+
`--output-hashing` define the output filename cache-busting hashing mode

docs/documentation/serve.md

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,9 @@
88
## Options
99
`--port` (`-p`) port to serve the application on
1010

11-
`--host` (`-H`)
11+
`--host` (`-H`) host where to listen
1212

13-
`--proxy-config` (`-pc`)
14-
15-
`--watcher` (`-w`) provide a new watcher
13+
`--proxy-config` (`-pc`) proxy configuration file
1614

1715
`--live-reload` (`-lr`) flag to turn off live reloading
1816

@@ -24,18 +22,40 @@
2422

2523
`--live-reload-live-css` flag to live reload CSS
2624

27-
`--target` (`-t`, `-dev`, `-prod`) target environment
28-
29-
`--environment` (`-e`) build environment
30-
3125
`--ssl` flag to turn on SSL
3226

3327
`--ssl-key` path to the SSL key
3428

3529
`--ssl-cert` path to the SSL cert
3630

37-
`--aot` flag to turn on Ahead of Time compilation
38-
3931
`--open` (`-o`) opens the app in the default browser
4032

41-
`--extract-css` extract css from global styles onto css files instead of js ones
33+
`--hmr` use hot module reload
34+
35+
`--target` (`-t`) define the build target
36+
37+
`--environment` (`-e`) defines the build environment
38+
39+
`--prod` flag to set build target and environment to production
40+
41+
`--dev` flag to set build target and environment to development
42+
43+
`--output-path` (`-po`) path where output will be placed
44+
45+
`--aot` flag whether to build using Ahead of Time compilation
46+
47+
`--sourcemap` (`-sm`) output sourcemaps
48+
49+
`--vendor-chunk` (`-vb`) use a separate bundle containing only vendor libraries
50+
51+
`--base-href` (`-bh`) base url for the application being built
52+
53+
`--deploy-url` (`-d`) url where files will be deployed
54+
55+
`--verbose` (`-v`) adds more details to output logging
56+
57+
`--progress` (`-pr`) log progress to the console while building
58+
59+
`--extract-css` (`-ec`) extract css from global styles onto css files instead of js ones
60+
61+
`--output-hashing` define the output filename cache-busting hashing mode

0 commit comments

Comments
 (0)