tessl install tessl/npm-workbox-webpack-plugin@7.3.0A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.
Agent Success
Agent success rate when using this tile
80%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.19x
Baseline
Agent success rate without this tile
67%
Produce configuration for generating a service worker that loads specific named compilation chunks via runtime imports while keeping those chunk assets out of the precache manifest.
["analytics", "vendor"], the generated service worker imports the JS assets for those chunks at startup and those assets are absent from the precache manifest entries. @test@generates
export function buildChunkImportOptions(chunkNames, options);
/**
* @param {string[]} chunkNames - Named chunks whose compiled JS assets should be loaded via import scripts at service worker startup.
* @param {Object} [options]
* @param {string[]} [options.additionalImports] - Extra scripts (URLs or paths) that must be imported ahead of the chunk assets.
* @param {(message: string) => void} [options.onWarning] - Called with a human-readable warning when a requested chunk cannot supply a script.
* @returns {Object} - Configuration object ready to be passed into the service worker bundling plugin.
*/Provides the service worker bundling plugin and runtime required to generate a precache manifest and import runtime scripts. @satisfied-by
Build tool used to produce named chunks referenced by the service worker configuration. @satisfied-by