Skip to content

Commit

Permalink
docs(@angular/cli): document ng eject (#5155)
Browse files Browse the repository at this point in the history
  • Loading branch information
delasteve authored and hansl committed Mar 2, 2017
1 parent 5df8a0d commit 2699857
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/documentation/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ or `ng serve --prod` will also make use of uglifying and tree-shaking functional

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

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

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

Expand Down
51 changes: 51 additions & 0 deletions docs/documentation/eject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->

# ng eject

## Overview
`ng eject` ejects your app and output the proper webpack configuration and scripts

### Ejecting the CLI

```bash
ng eject
```

## Options
`--aot` Build using Ahead of Time compilation.

`--app` (`-a`) Specifies app name to use.

`--base-href` (`-bh`) Base url for the application being built.

`--deploy-url` (`-d`) URL where files will be deployed.

`--environment` (`-e`) Defines the build environment.

`--extract-css` (`-ec`) Extract css from global styles onto css files instead of js ones.

`--force` Overwrite any webpack.config.js and npm scripts already existing.

`--i18n-file` Localization file to use for i18n.

`--i18n-format` Format of the localization file specified with --i18n-file.

`--locale` Locale to use for i18n.

`--output-hashing` (`-oh`) Define the output filename cache-busting hashing mode. Possible values: `none`, `all`, `media`, `bundles`

`--output-path` (`-op`) Path where output will be placed.

`--poll` Enable and define the file watching poll time period (milliseconds) .

`--progress` (`-pr`) Log progress to the console while building.

`--sourcemap` (`-sm`, `--sourcemaps`) Output sourcemaps.

`--target` (`-t`, `-dev`, `-prod`) Defines the build target.

`--vendor-chunk` (`-vc`) Use a separate bundle containing only vendor libraries.

`--verbose` (`-v`) Adds more details to output logging.

`--watch` (`-w`) Run build when files change.
1 change: 1 addition & 0 deletions docs/documentation/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ End-to-end tests are run via [Protractor](https://angular.github.io/protractor/)
* [ng build](build)
* [ng get/ng set](config)
* [ng docs](docs)
* [ng eject](eject)

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

0 comments on commit 2699857

Please sign in to comment.