3.3 KiB
ng eject
Overview
ng eject
ejects your app and output the proper webpack configuration and scripts
Ejecting the CLI
ng eject
Options
aot
`--aot`
Build using Ahead of Time compilation.
app
`--app` (alias: `-a`) _default value: 1st app_
Specifies app name to use.
base-href
`--base-href` (alias: `-bh`)
Base url for the application being built.
deploy-url
`--deploy-url` (alias: `-d`)
URL where files will be deployed.
environment
`--environment` (alias: `-e`)
Defines the build environment.
extract-css
`--extract-css` (alias: `-ec`)
Extract css from global styles onto css files instead of js ones.
force
`--force` _default value: false_
Overwrite any webpack.config.js and npm scripts already existing.
i18n-file
`--i18n-file`
Localization file to use for i18n.
i18n-format
`--i18n-format`
Format of the localization file specified with --i18n-file.
locale
`--locale`
Locale to use for i18n.
output-hashing
`--output-hashing` (alias: `-oh`) _default value: _
Define the output filename cache-busting hashing mode. Possible values: `none`, `all`, `media`, `bundles`
output-path
`--output-path` (alias: `-op`) _default value: _
Path where output will be placed.
poll
`--poll`
Enable and define the file watching poll time period (milliseconds) .
progress
`--progress` (alias: `-pr`) _default value: true_
Log progress to the console while building.
sourcemap
`--sourcemap` (alias: `-sm`, `sourcemaps`)
Output sourcemaps.
target
`--target` (aliases: `-t`, `-dev`, `-prod`) _default value: development_
Defines the build target.
vendor-chunk
`--vendor-chunk` (aliases: `-vc`) _default value: true_
Use a separate bundle containing only vendor libraries.
verbose
`--verbose` (aliases: `-v`) _default value: false_
Adds more details to output logging.
watch
`--watch` (aliases: `-w`)
Run build when files change.