Urara-Blog/node_modules/.pnpm-store/v3/files/dc/671fcdf9e441e17bfdec47bb08cd8946d685f2fe98cee85bd9a3ebc82a290bbb0d8271abd5294bb203f0261d27b7d25142426586b44822c0d32a32ff91c5b4
2022-08-14 01:14:53 +08:00

21 lines
598 B
Text

/*
Copyright 2019 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';
import './_version.js';
/**
* Adds plugins to the precaching strategy.
*
* @param {Array<Object>} plugins
*
* @memberof workbox-precaching
*/
function addPlugins(plugins) {
const precacheController = getOrCreatePrecacheController();
precacheController.strategy.plugins.push(...plugins);
}
export { addPlugins };