DEV Community

Manthan Ankolekar
Manthan Ankolekar

Posted on

Configuring build cache in Angular App

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

Top comments (0)