Server builder

ID: @angular-devkit/build-angular:server

Options

--bundleDependencies#

Available on server platform only. Which external dependencies to bundle into the module. By default, all of node_modules will be kept as requires.

Type string
Values none,all
Default none

--commonChunk#

Use a separate bundle containing code used across multiple bundles.

Type boolean
Default true

--deleteOutputPath#

Delete the output path before building.

Type boolean
Default true

--evalSourceMap#

Output in-file eval sourcemaps.

Type boolean

--externalDependencies#

Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.

Type array
Default

--extractLicenses#

Extract all licenses in a separate file, in the case of production builds only.

Type boolean
Default true

--fileReplacements#

Replace files with other files in the build.

Type array

--forkTypeChecker#

Run the TypeScript type checker in a forked process.

Type boolean
Default true

--i18nFile#

Localization file to use for i18n.

Type string

--i18nFormat#

Format of the localization file specified with --i18n-file.

Type string

--i18nLocale#

Locale to use for i18n.

Type string

--i18nMissingTranslation#

How to handle missing translations for i18n.

Type string

--lazyModules#

List of additional NgModule files that will be lazy loaded. Lazy router modules with be discovered automatically.

Type array

--localize#

--main#

The name of the main entry-point file.

Type string

--namedChunks#

Use file name for lazy loaded chunks.

Type boolean
Default true

--optimization#

Defines the optimization level of the build.

Type boolean

--outputHashing#

Define the output filename cache-busting hashing mode.

Type string
Values none,all,media,bundles
Default none

--outputPath#

Path where output will be placed.

Type string

Do not use the real path when resolving modules.

Type boolean

--progress#

Log progress to the console while building.

Type boolean
Default true

--resourcesOutputPath#

The path where style resources will be placed, relative to outputPath.

Type string

--showCircularDependencies#

Show circular dependency warnings on builds.

Type boolean
Default true

--sourceMap#

Output sourcemaps.

Type boolean
Default true

--statsJson#

Generates a 'stats.json' file which can be analyzed using tools such as: #webpack-bundle-analyzer or https://webpack.github.io/analyse.

Type boolean

--stylePreprocessorOptions#

Options to pass to style preprocessors.

Type object

--tsConfig#

The name of the TypeScript configuration file.

Type string
Default tsconfig.app.json

--vendorChunk#

Use a separate bundle containing only vendor libraries.

Type boolean
Default true

--vendorSourceMap#

Resolve vendor packages sourcemaps.

Type boolean
Default false

--verbose#

Adds more details to output logging.

Type boolean