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.

10 lines (8 loc) 238 B
export const configTemplate = ` // sw.config.ts export const serviceWorkerConfig = { cacheFirstRoutes: ['/static/', '/assets/'], networkFirstRoutes: ['/api/', '/auth/'], staleWhileRevalidateRoutes: ['/blog/', '/dashboard/'], }; `;