vite-plugin-inject-sw-assets
Version:
A Vite plugin that injects static assets into a custom service worker for use with injectManifest (ideal for Workbox + vite-plugin-pwa setups).
9 lines (8 loc) • 418 B
TypeScript
/**
* Extracts the list of icon file paths from a PWA manifest file.
* These paths are typically used to avoid re-caching them in the service worker.
*
* @param {string} manifestPath - Absolute or relative path to the manifest.webmanifest file
* @returns {string[]} - Array of icon paths (prefixed with a slash if needed)
*/
export declare function getIconsToExcludeFromManifest(manifestPath: string): string[];