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-9/

{
  "context": "Evaluates how well the solution configures workbox-webpack-plugin to reshape the precache manifest using its customization hooks. Focuses on manual entries, CDN-aware URL rewriting, filtering noisy assets, revision handling for hashed files, and ensuring the plugin wiring applies these rules.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Manual entries",
      "description": "Uses workbox-webpack-plugin additionalManifestEntries to inject the offline HTML with the provided revision and the remote font with a null/omitted revision so they are always precached.",
      "max_score": 25
    },
    {
      "name": "Base path rewrite",
      "description": "Prefixes non-absolute manifest URLs with the supplied basePath via modifyURLPrefix or a manifestTransforms step, avoiding duplicate slashes and leaving already absolute URLs untouched.",
      "max_score": 20
    },
    {
      "name": "Filtering warnings",
      "description": "Implements a manifestTransforms function that drops .map assets and /admin/ paths and appends warning messages enumerating each removed URL in order.",
      "max_score": 20
    },
    {
      "name": "Hashed revision handling",
      "description": "Uses manifestTransforms or dontCacheBustURLsMatching to clear revision values for fingerprinted filenames while keeping revisions for non-fingerprinted entries.",
      "max_score": 20
    },
    {
      "name": "Plugin wiring",
      "description": "Returns a GenerateSW or InjectManifest plugin instance with manifestTransforms and additionalManifestEntries configured so the bundler actually applies these manifest rules.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

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

tile.json