Solution Review: Create a Progressive Web Application

Review the solution of converting a Blazor WebAssembly into a progressive web application.

We'll cover the following

We added the ServiceWorkerAssetsManifest with a reference to the service-worker-assets.js file on line 7 of the Blazor.csproj file. This causes the application to generate the service worker manifest when we publish it. Then, on line 16, we added the ServiceWorker element with references to the service-worker.js and service-worker.published.js files. These files represent the service worker script for in-development and published scenarios, respectively.

Solution

The code widget below shows the complete solution to the exercise.

Get hands-on with 1400+ tech skills courses.