Skip to content

Commit 2699857

Browse files
delastevehansl
authored andcommitted
docs(@angular/cli): document ng eject (#5155)
1 parent 5df8a0d commit 2699857

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

docs/documentation/build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ or `ng serve --prod` will also make use of uglifying and tree-shaking functional
7575

7676
`--dev` flag to set build target and environment to development
7777

78-
`--output-path` (`-po`) path where output will be placed
78+
`--output-path` (`-op`) path where output will be placed
7979

8080
`--aot` flag whether to build using Ahead of Time compilation
8181

docs/documentation/eject.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->
2+
3+
# ng eject
4+
5+
## Overview
6+
`ng eject` ejects your app and output the proper webpack configuration and scripts
7+
8+
### Ejecting the CLI
9+
10+
```bash
11+
ng eject
12+
```
13+
14+
## Options
15+
`--aot` Build using Ahead of Time compilation.
16+
17+
`--app` (`-a`) Specifies app name to use.
18+
19+
`--base-href` (`-bh`) Base url for the application being built.
20+
21+
`--deploy-url` (`-d`) URL where files will be deployed.
22+
23+
`--environment` (`-e`) Defines the build environment.
24+
25+
`--extract-css` (`-ec`) Extract css from global styles onto css files instead of js ones.
26+
27+
`--force` Overwrite any webpack.config.js and npm scripts already existing.
28+
29+
`--i18n-file` Localization file to use for i18n.
30+
31+
`--i18n-format` Format of the localization file specified with --i18n-file.
32+
33+
`--locale` Locale to use for i18n.
34+
35+
`--output-hashing` (`-oh`) Define the output filename cache-busting hashing mode. Possible values: `none`, `all`, `media`, `bundles`
36+
37+
`--output-path` (`-op`) Path where output will be placed.
38+
39+
`--poll` Enable and define the file watching poll time period (milliseconds) .
40+
41+
`--progress` (`-pr`) Log progress to the console while building.
42+
43+
`--sourcemap` (`-sm`, `--sourcemaps`) Output sourcemaps.
44+
45+
`--target` (`-t`, `-dev`, `-prod`) Defines the build target.
46+
47+
`--vendor-chunk` (`-vc`) Use a separate bundle containing only vendor libraries.
48+
49+
`--verbose` (`-v`) Adds more details to output logging.
50+
51+
`--watch` (`-w`) Run build when files change.

docs/documentation/home.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ End-to-end tests are run via [Protractor](https://angular.github.io/protractor/)
5151
* [ng build](build)
5252
* [ng get/ng set](config)
5353
* [ng docs](docs)
54+
* [ng eject](eject)
5455

5556
### Additional Information
5657
There are several [stories](stories) which will walk you through setting up

0 commit comments

Comments
 (0)