Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(@angular/cli): document ng eject #5155

Merged
merged 1 commit into from
Mar 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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