Kevin Phelps 26e94339ba feat(@angular/cli): make the common chunk optional
- Add a "--no-common-chunk" build option for disabling the common async chunk.
- The existing behavior is maintained by default.

closes #7021
2017-07-19 10:13:24 -04:00

4.1 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 (aliases: -a) default value: 1st app

Specifies app name to use.

base-href

--base-href (aliases: -bh)

Base url for the application being built.

deploy-url

--deploy-url (aliases: -d)

URL where files will be deployed.

environment

--environment (aliases: -e)

Defines the build environment.

extract-css

--extract-css (aliases: -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 (aliases: -oh) default value:

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

output-path

--output-path (aliases: -op) default value:

Path where output will be placed.

poll

--poll

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

progress

--progress (aliases: -pr) default value: true

Log progress to the console while building.

sourcemap

--sourcemap (aliases: -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.

common-chunk

--common-chunk (aliases: -cc) default value: true

Use a separate bundle containing code used across multiple bundles.

verbose

--verbose (aliases: -v) default value: false

Adds more details to output logging.

watch

--watch (aliases: -w)

Run build when files change.