A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.
Overall
score
80%
Configure a webpack build helper that emits a service worker with a precache manifest limited to approved assets and URLs.
.js and .css files for chunks named app and vendor, the precache manifest contains those URLs with revisions while excluding any admin chunk files and .map assets. @testpublicPath, including trailing slash handling, and do not duplicate slashes. @test@generates
/**
* Creates a webpack plugin instance that generates a service worker with a filtered precache manifest.
*
* @param {Object} options
* @param {string} options.publicPath - Base URL prefix applied to manifest entries.
* @param {string[]} options.allowedChunks - Chunk names to include in precaching (e.g., ["app", "vendor"]).
* @param {string[]} [options.deniedChunks] - Chunk names to exclude even if present in the build.
* @param {number} options.maxFileSizeBytes - Maximum file size allowed for precached assets.
* @returns {any} Configured plugin ready to be added to a webpack config.
*/
export function createFilteredPrecachePlugin(options);Provides build-time generation of service workers with asset discovery, filtering, and precache manifest output.
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