Professional Documents
Culture Documents
Angular - NG Cache
Angular - NG Cache
Angular - NG Cache
ng
Description
When you re-run the same build, the build system restores the state of
decreases the time taken to build and test your applications and
libraries.
To amend the default cache settings, add the cli.cache object to your
{
"$schema": ".∕node_modules∕@angular∕cli∕lib∕config
∕schema.json",
"version": 1,
"cli": {
"cache": {
∕∕ ...
}
},
"projects": {}
}
For more information, see cache options.
Cache environments
By default, disk cache is only enabled for local environments. The value
The Angular CLI checks for the presence and value of the CI
running.
Cache path
By default, .angular∕cache is used as a base directory to store cache
results.
• disable
• enable
• info
Options
VALUE DEFAULT
OPTION DESCRIPTION
TYPE VALUE
the console.
Cache commands
clean
ng cache
disable
ng cache
ng cache
Disables persistent disk cache for all projects in the workspace.
enable
ng cache
ng cache
info
ng cache