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 configuration helper that builds a web app bundle and emits an offline-ready service worker.
@generates
/**
* Creates a webpack configuration that builds the app and emits a service worker with the offline behavior above.
* @param {Object} options
* @param {string} options.entry - Absolute path to the app entry file.
* @param {string} options.outputDir - Absolute output directory for webpack assets.
* @param {string} options.offlinePage - Path (relative to outputDir) to the offline HTML asset to precache and use for navigation fallback.
* @param {string} options.apiBaseUrl - Base URL prefix for API calls requiring network-first handling.
* @param {{url: string, revision: string}[]} [options.additionalEntries] - Extra URLs with revisions that must be precached alongside build assets.
* @returns {import('webpack').Configuration} A webpack config object ready to run.
*/
export function createPwaConfig(options);Generates the service worker, builds the precache manifest, and wires runtime caching routes. @satisfied-by