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%
A build helper that configures service worker generation to stay safe during repeated webpack builds.
@generates
/**
* Returns a configured build plugin that generates a precaching service worker
* while guarding against self-precaching when builds rerun.
*
* @param {object} options
* @param {string} options.swDest Absolute or output-relative path for the service worker bundle.
* @param {string} [options.publicPath] Base URL for emitted assets.
* @param {boolean} [options.watchMode] Indicates the compiler runs in watch mode.
* @returns {object} A webpack-compatible plugin instance ready to be added to a config.
*/
function createSwPlugin(options) {}Generates a service worker with precache and runtime caching support for webpack builds.