Configuring build cache in Angular App

Manthan Ankolekar - Mar 1 '23 - - Dev Community

Adding cache in anular.json

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
    "projects" {
    ...
    },
  "cli": {
    "cache": {
      "enabled": true, // select true or false
      "environment": "all", // select all, ci or local
      "path": "temp/cache/.angular" // folder name where it should add
   }
    }
}
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .