UNPKG

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).

17 lines (16 loc) 381 B
/** * Configuration options for the vite-plugin-inject-sw-assets plugin. */ export interface InjectSWAssetsOptions { distDir?: string; output?: string; extensions?: string[]; excludeFromManifest?: boolean; } /** * Represents a static asset to be injected into the service worker. */ export interface AssetEntry { url: string; revision: string | null; }