get-manifest.d.ts 769 B

1234567891011121314151617181920
  1. import { GetManifestOptions, GetManifestResult } from './types';
  2. /**
  3. * This method returns a list of URLs to precache, referred to as a "precache
  4. * manifest", along with details about the number of entries and their size,
  5. * based on the options you provide.
  6. *
  7. * ```
  8. * // The following lists some common options; see the rest of the documentation
  9. * // for the full set of options and defaults.
  10. * const {count, manifestEntries, size, warnings} = await getManifest({
  11. * dontCacheBustURLsMatching: [new RegExp('...')],
  12. * globDirectory: '...',
  13. * globPatterns: ['...', '...'],
  14. * maximumFileSizeToCacheInBytes: ...,
  15. * });
  16. * ```
  17. *
  18. * @memberof workbox-build
  19. */
  20. export declare function getManifest(config: GetManifestOptions): Promise<GetManifestResult>;