A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.
Overall
score
80%
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.
Install with Tessl CLI
npx tessl i tessl/npm-workbox-webpack-pluginevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10