UNPKG

vite-pwa

Version:

This package helps you to cache your files with service worker.

36 lines (35 loc) 993 B
export declare type ConfigOptional = { swDest?: string; swRegisterDest?: string; mapDest?: string; map?: boolean; spa?: boolean; preCacheSw?: boolean; preCacheFiles?: string[]; preCacheFilter?: any; preCacheName?: string; runtimeCacheName?: string; }; export declare type Config = { swDest: string; swRegisterDest: string; mapDest: string; map: boolean; spa: boolean; preCacheSw: boolean; preCacheFiles: string[]; preCacheFilter: boolean | RegExp | Function | any; preCacheName: string; runtimeCacheName: string; }; export declare type ExtraConfig = { swDest: string; swRegisterDest: string; mapAllDest: string; mapBuildDest: string; }; export declare const defaultConfig: Config; export declare const name = "Vite-PWA"; export declare const swInputFile: string; export declare const swRegisterInputFile: string; export declare const getRandomRef: () => string;