|
| 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. |
0 commit comments