copy-workbox-libraries.d.ts 874 B

1234567891011121314151617181920
  1. /**
  2. * This copies over a set of runtime libraries used by Workbox into a
  3. * local directory, which should be deployed alongside your service worker file.
  4. *
  5. * As an alternative to deploying these local copies, you could instead use
  6. * Workbox from its official CDN URL.
  7. *
  8. * This method is exposed for the benefit of developers using
  9. * {@link workbox-build.injectManifest} who would
  10. * prefer not to use the CDN copies of Workbox. Developers using
  11. * {@link workbox-build.generateSW} don't need to
  12. * explicitly call this method.
  13. *
  14. * @param {string} destDirectory The path to the parent directory under which
  15. * the new directory of libraries will be created.
  16. * @return {Promise<string>} The name of the newly created directory.
  17. *
  18. * @alias workbox-build.copyWorkboxLibraries
  19. */
  20. export declare function copyWorkboxLibraries(destDirectory: string): Promise<string>;