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%
Build a bundling routine that injects a precache manifest into a service worker while keeping the generated sourcemap accurate after the placeholder replacement.
__INJECT_PRECACHE__ and an external sourcemap comment, running the build writes sw.js with that placeholder replaced by the provided manifest entries and emits sw.js.map that references the injected code instead of the placeholder. @testsw.js and sw.js.map so the map length and mappings match the new manifest string rather than a stale offset. @test@generates
/**
* Builds a service worker bundle with an injected precache manifest and sourcemap support.
*
* @param {Object} options
* @param {string} options.swSrc - Path to the service worker source that includes the manifest placeholder.
* @param {string} options.swDest - Output path for the built service worker JavaScript file.
* @param {Array<{url: string, revision: string}>} options.manifestEntries - Precache entries to inject.
* @param {string} [options.publicPath] - Optional public URL prefix to apply to manifest URLs.
* @param {boolean} [options.enableSourceMap=true] - Whether to emit and update a sourcemap alongside the output.
* @returns {Promise<{swPath: string, mapPath?: string}>} Resolves with written file paths once bundling completes.
*/
async function buildServiceWorker(options);Provides bundle-time precache manifest injection and sourcemap-aware replacement. @satisfied-by
Build toolchain used to compile the service worker bundle and emit assets. @satisfied-by