{"library":"serviceworker-webpack-plugin","type":"library","category":null,"description":"A webpack plugin (v1.0.2, latest) that simplifies creating a service worker to cache all webpack bundle assets. It automatically resolves asset names (including hashed names for long-term caching) and provides them to a custom service worker script via a global `serviceWorkerOption` variable. Supports webpack 4 only (peer dependency). Key differentiator: it handles non-deterministic asset names and integrates with webpack's dev server. Alternatives like `workbox-webpack-plugin` are more full-featured but heavier; this plugin is minimal and focused.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript","serviceworker","webpack","plugin"],"install":[{"cmd":"npm install serviceworker-webpack-plugin","imports":["import ServiceWorkerWebpackPlugin from 'serviceworker-webpack-plugin';","import runtime from 'serviceworker-webpack-plugin/lib/runtime';","// Global variable injected into the service worker script at build time"]},{"cmd":"yarn add serviceworker-webpack-plugin","imports":[]},{"cmd":"pnpm add serviceworker-webpack-plugin","imports":[]}],"homepage":null,"github":"https://github.com/oliviertassinari/serviceworker-webpack-plugin","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/serviceworker-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/serviceworker-webpack-plugin/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Fri Jul 24","install_tag":null}}