Angular - NG Build
Angular - NG Build
ng [project]
ng [project]
Description
The application builder uses the esbuild build tool, with default
to create the project, and you can use that con�guration by specifying
Some additional options can only be set through the con�guration �le,
and fonts, are automatically written and �ngerprinted at the root of the
output folder.
Arguments
ARGUMENT DESCRIPTION VALUE TYPE
an application or a
library.
Options
OPTION DESCRIPTION VALUE TYPE
CommonJS or
AMD packages
that are
allowed to be
used without a
build time
warning. Use
'*' to allow
all.
Ahead of Time
compilation.
application
shell during
build time.
application
being built.
OPTION DESCRIPTION VALUE TYPE
entry point to
the application,
relative to the
current
workspace.
clear the
terminal screen
during rebuilds.
OPTION DESCRIPTION VALUE TYPE
named builder
configurations
as a comma-
separated list
as specified in
the
"configurations"
section in
angular.json.
The builder
uses the
named
configurations
target. For
more
information,
see
https://angul
ar.io/guide/
workspace-c
onfig#altern
ate-build-con
figurations
Aliases: -c
OPTION DESCRIPTION VALUE TYPE
elements that
provide CORS
support.
output path
before building.
OPTION DESCRIPTION VALUE TYPE
the URLs of
resources in
'index.html' and
component
stylesheets.
This option is
only necessary
for specific
deployment
scenarios, such
as with Angular
Elements or
when utilizing
different CDN
locations.
OPTION DESCRIPTION VALUE TYPE
listed external
dependencies
from being
bundled into
the bundle.
Instead, the
created bundle
relies on these
dependencies
to be available
during runtime.
licenses in a
separate file.
message for
this command
in the console.
i18n.
OPTION DESCRIPTION VALUE TYPE
i18n.
generation of
the
application's
HTML index.
application's
inline
component
styles.
bundles in one
or more
locales.
chunks.
OPTION DESCRIPTION VALUE TYPE
optimization of
the build
output.
Including
minification of
scripts and
styles, tree-
shaking, dead-
code
elimination,
inlining of
fonts inlining.
For more
information,
see
https://angul
ar.io/guide/
workspace-c
onfig#optimi
zation-config
uration
.
OPTION DESCRIPTION VALUE TYPE
hashing mode.
output path
relative to
workspace
root.
watching poll
time period in
milliseconds.
OPTION DESCRIPTION VALUE TYPE
polyfills to
include in the
build. Can be a
file, relative to
the current
workspace or
module
specifier.
Example:
'zone.js'.
(SSG) pages of
your
application
during build
time.
OPTION DESCRIPTION VALUE TYPE
resolving
modules. If
default to
true if
NodeJS option
--preserve-
symlinks is set.
the console
while building.
entry point to
the application,
relative to the
current
workspace.
service worker
configuration.
OPTION DESCRIPTION VALUE TYPE
maps for
scripts and
styles. For
more
information,
see
https://angul
ar.io/guide/
workspace-c
onfig#sourc
e-map-config
uration