addPlugins.js 485 B

1234567891011121314151617181920
  1. /*
  2. Copyright 2019 Google LLC
  3. Use of this source code is governed by an MIT-style
  4. license that can be found in the LICENSE file or at
  5. https://opensource.org/licenses/MIT.
  6. */
  7. import { precachePlugins } from './utils/precachePlugins.js';
  8. import './_version.js';
  9. /**
  10. * Adds plugins to precaching.
  11. *
  12. * @param {Array<Object>} newPlugins
  13. *
  14. * @memberof module:workbox-precaching
  15. */
  16. function addPlugins(newPlugins) {
  17. precachePlugins.add(newPlugins);
  18. }
  19. export { addPlugins };