angularangular-cache

How to get .angular/cache folder back?


I was upgrading my angular project from v8 to v17. At the end of upgrade I found .angular folder and I've deleted the .angular folder from my project since my project compiling time has increased. Even after deleting .angular` folder, my project compiling time has remained same. But, in this process I lost the .angular/cache folder. I found that .angular/cache enhances the performance. Is there a way to get back the .angular/cache folder?


Solution

  • Try checking out the angular docs for ng cache

    ENABLE

    Enables disk cache for all projects in the workspace.

    ng cache enable
    ng cache on
    

    Cache will get generated when you run the application (ng serve) command or npm run start!