Make a Progressive Web Application from an Angular CLI project
In this lesson we will add a Service Worker and convert our app into a Progressive Web Application (PWA). We can do this by running
ng add @angular/pwa.
We will use Lighthouse to generate a score and gradually improve this score.
ngsw-config.json we define which
dataGroups should be cached.
index.html we add a
robots.txt to make sure our site can be indexed.