UNPKG

@arslaan/pwa

Version:

A simple CLI tool to scaffold and generate service worker and manifest files for PWAs using customizable route-based caching strategies.

9 lines (6 loc) 204 B
// sw.config.ts export const serviceWorkerConfig = { cacheFirstRoutes: ['/static/', '/assets/'], networkFirstRoutes: ['/api/', '/auth/'], staleWhileRevalidateRoutes: ['/blog/', '/dashboard/'], };