{"library":"workbox-webpack-plugin","type":"library","category":null,"description":"The `workbox-webpack-plugin` is a core module within the Workbox library, designed to integrate service worker generation and management directly into a Webpack build pipeline. It facilitates the precaching of static assets by generating a manifest of local files, which `workbox-sw` then utilizes to ensure an application functions reliably offline. The current stable version is 7.4.0, with minor releases primarily focused on critical dependency updates and maintenance. Key differentiators include its seamless integration with Webpack, offering two primary modes: `GenerateSW` for fully automated service worker creation, and `InjectManifest` for more customized service worker logic while still leveraging Workbox's build-time precaching. This plugin supports modern JavaScript environments and has been rewritten in TypeScript since v6.5.0, providing robust type definitions.","language":"javascript","status":"active","version":"7.4.0","tags":["javascript","workbox","workboxjs","webpack","service worker","caching","fetch requests","offline","file manifest","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install workbox-webpack-plugin","imports":["import { GenerateSW } from 'workbox-webpack-plugin';","import { InjectManifest } from 'workbox-webpack-plugin';","import * as WorkboxWebpackPlugin from 'workbox-webpack-plugin';"]},{"cmd":"yarn add workbox-webpack-plugin","imports":[]},{"cmd":"pnpm add workbox-webpack-plugin","imports":[]}],"homepage":"https://developers.google.com/web/tools/workbox","github":"https://github.com/googlechrome/workbox","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/workbox-webpack-plugin","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/workbox-webpack-plugin/compatibility"}}