CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-workbox-webpack-plugin

A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.

Overall
score

80%

Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "Evaluates how the service worker build uses workbox-webpack-plugin to inject the precache manifest while emitting sourcemaps. Focuses on InjectManifest configuration that keeps mappings accurate after placeholder replacement and across manifest updates.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "InjectManifest setup",
      "description": "Build configuration relies on workbox-webpack-plugin InjectManifest (not manual string replacement) with explicit swSrc/swDest to produce the service worker bundle.",
      "max_score": 25
    },
    {
      "name": "Injection point",
      "description": "InjectManifest is configured with injectionPoint (e.g., '__INJECT_PRECACHE__') so the plugin targets the placeholder described in the spec rather than defaulting incorrectly.",
      "max_score": 20
    },
    {
      "name": "Sourcemap output",
      "description": "Webpack devtool and InjectManifest sourcemap option are enabled so the build writes sw.js.map alongside sw.js and wires sourceMappingURL appropriately.",
      "max_score": 20
    },
    {
      "name": "Map-aware replacement",
      "description": "Manifest injection relies on InjectManifest's sourcemap-aware replacement (replaceAndUpdateSourceMap in the plugin pipeline) rather than a manual string replace that would drop or misalign mappings.",
      "max_score": 20
    },
    {
      "name": "Manifest changes",
      "description": "Changes to manifestEntries (passed via additionalManifestEntries/manifestTransforms on InjectManifest) trigger regeneration of both sw.js and sw.js.map so mappings reflect the new manifest size instead of a cached map.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-workbox-webpack-plugin

tile.json