# goldhand/sw-precache-webpack-plugin

Webpack plugin that generates a service worker using sw-precache that will cache webpack's bundles' emitted assets. You can optionally pass sw-precache configuration options to webpack through this plugin.

Repository: https://github.com/goldhand/sw-precache-webpack-plugin
Canonical: https://ross.abutalabs.com/products/sw-precache-webpack-plugin
Language: JavaScript
License: MIT
License Family: permissive
Topics: sw-precache, service-workers, webpack-plugin, sw-guide, progressive-web-app, offline
Last push: 2020-10-15T06:28:22+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3748, "days_push": 2148, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1435, forks 102 (observed 2026-08-28T04:04:43.441216+00:00)

## What it is
A webpack plugin that generates a service worker using sw-precache to cache webpack's emitted bundle assets for offline use. It integrates sw-precache configuration directly into the webpack build pipeline.

## Use cases
- generate a service worker for my webpack build
- cache webpack bundles for offline access
- add offline support to a progressive web app
- precache static assets with a service worker
- integrate sw-precache into webpack config
- make a single-page app work offline

## When to choose
- you have an existing webpack 3/4 project already using sw-precache
- you need a simple drop-in service worker generation step in a legacy webpack build

## When to avoid
- starting a new project - the README recommends Workbox's GenerateSW plugin instead
- you need webpack 5 support or ongoing updates
- you need advanced service worker features like runtime caching strategies

## Facets
- artifact type: plugin
- maturity: maintenance
- function: plugin-system, build-tool, caching
- domain: web-development, frontend, developer-tools
- platform: -
- tags: webpack-plugin, service-worker, sw-precache, progressive-web-app, offline-support, pwa, deprecated, nodejs, web-server

## Member repositories
- goldhand/sw-precache-webpack-plugin (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:43.441216+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:36:51.397195+00:00, confidence not recorded.
  - readme: https://github.com/goldhand/sw-precache-webpack-plugin (fetched 2026-08-28T04:04:43.441216+00:00, sha c094b0fceeac)
  - registry_npm: https://registry.npmjs.org/sw-precache-webpack-plugin (fetched 2026-08-29T11:48:00.287068+00:00, sha a38d38156dcc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
