Closed mrbrianevans closed 2 years ago
See https://dev.to/wtho/custom-service-worker-logic-in-typescript-on-vite-4f27 on how to write the service worker in TypeScript
See vite-plugin-pwa
for a plugin that auto-configures service workers for use with Vite
The website can now be installed as a standalone app in Chrome:
Allow the website to be installed in a browser, and work offline (progressive web app). Load all resources with a service worker and cache them