Skip to content

Configuring build cache in Angular App

Published: at 05:35 AM (1 min read)

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
        }
    }
}