You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/build.md
+25-17
Original file line number
Diff line number
Diff line change
@@ -65,36 +65,44 @@ All builds make use of bundling, and using the `--prod` flag in `ng build --pro
65
65
or `ng serve --prod` will also make use of uglifying and tree-shaking functionality.
66
66
67
67
## Options
68
-
`--watch` (`-w`) rebuild when files change
68
+
`--aot` Build using Ahead of Time compilation.
69
69
70
-
`--target` (`-t`) define the build target
70
+
`--app` Specifies app name or index to use.
71
71
72
-
`--environment` (`-e`) defines the build environment
72
+
`--base-href` (`-bh`) Base url for the application being built.
73
73
74
-
`--prod` flag to set build target and environment to production
74
+
`--deploy-url` (`-d`) URL where files will be deployed.
75
75
76
-
`--dev`flag to set build target and environment to development
76
+
`--dev`Build target and environment to development.
77
77
78
-
`--output-path` (`-po`) path where output will be placed
78
+
`--environment` (`-e`) Defines the build environment.
79
79
80
-
`--aot` flag whether to build using Ahead of Time compilation
80
+
`--extract-css` (`-ec`) Extract css from global styles onto css files instead of js ones.
81
81
82
-
`--sourcemap` (`-sm`) output sourcemaps
82
+
`--i18n-file` Localization file to use for i18n.
83
83
84
-
`--vendor-chunk` (`-vb`) use a separate bundle containing only vendor libraries
84
+
`--i18n-format` Format of the localization file specified with --i18n-file.
85
85
86
-
`--base-href` (`-bh`) base url for the application being built
86
+
`--locale` Locale to use for i18n.
87
87
88
-
`--deploy-url` (`-d`) url where files will be deployed
88
+
`--output-hashing` Define the output filename cache-busting hashing mode.
89
89
90
-
`--verbose` (`-v`) adds more details to output logging
90
+
`--output-path` (`-op`) Path where output will be placed.
91
91
92
-
`--progress` (`-pr`) log progress to the console while building
92
+
`--poll` Enable and define the file watching poll time period (milliseconds).
93
93
94
-
`--extract-css` (`-ec`) extract css from global styles onto css files instead of js ones
94
+
`--prod` Build target and environment to production.
95
95
96
-
`--output-hashing` define the output filename cache-busting hashing mode
96
+
`--progress` (`-pr`) Log progress to the console while building.
97
97
98
-
`--stats-json` generates a `stats.json` file which can be analyzed using tools such as: `webpack-bundle-analyzer` or https://webpack.github.io/analyse
98
+
`--sourcemap` (`-sm`) Output sourcemaps.
99
99
100
-
`--poll` enable and define the file watching poll time period (milliseconds)
100
+
`--stats-json` Generates a `stats.json` file which can be analyzed using tools such as: `webpack-bundle-analyzer` or https://webpack.github.io/analyse.
101
+
102
+
`--target` (`-t`) Defines the build target.
103
+
104
+
`--vendor-chunk` (`-vb`) Use a separate bundle containing only vendor libraries.
105
+
106
+
`--verbose` (`-v`) Adds more details to output logging.
`--serve` Compile and Serve the app. All non-reload related serve options are also available (e.g. --port=4400). The live-reload option defaults to false.
25
22
26
-
`--webdriver-update` (`-wu`) try to update webdriver.
23
+
`--specs` Override specs in the protractor config. Can send in multiple specs by repeating flag (ng e2e --specs=spec1.ts --specs=spec2.ts).
27
24
28
-
`--serve` (`-s`) compile and serve the app.
29
-
All non-reload related serve options are also available (e.g. `--port=4400`).
25
+
`--webdriver-update` (`-wu`) (Default: true) Try to update webdriver.
0 commit comments