{"library":"service-worker-webpack","title":"service-worker-webpack","description":"A minimal Webpack plugin wrapper around Workbox (v6+) to generate a service worker that precaches static assets. Current stable version is 1.0.0, which follows semantic versioning. Works with Webpack 4 and 5, and ships TypeScript type definitions. Key differentiators: zero-config setup (just add the plugin), optional logging controls, and development mode support with proper cleanup of stale service workers.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install service-worker-webpack"],"cli":null},"imports":["const { ServiceWorkerPlugin } = require('service-worker-webpack');","const ServiceWorkerPlugin = require('service-worker-webpack').ServiceWorkerPlugin;","const { ServiceWorkerPlugin } = require('service-worker-webpack');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const path = require('path');\nconst { ServiceWorkerPlugin } = require('service-worker-webpack');\n\nmodule.exports = {\n  entry: './src/index.js',\n  output: {\n    filename: 'main.js',\n    path: path.resolve(__dirname, 'dist'),\n  },\n  plugins: [\n    new ServiceWorkerPlugin({\n      enableInDevelopment: false,\n      enableWorkboxLogging: false,\n    }),\n  ],\n};","lang":"javascript","description":"Adds a service worker that precaches all output static assets using Workbox, with minimal configuration.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}