1.5 KiB
ng eject
Overview
ng eject
ejects your app and output the proper webpack configuration and scripts
Ejecting the CLI
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.