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

{
  "context": "Evaluates whether the generated Workbox service worker configuration correctly leverages importScriptsViaChunks to load specific webpack chunks at runtime instead of precaching them, while surfacing warnings for invalid chunk inputs. Scoring checks precise use of workbox-webpack-plugin options rather than general coding style.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Chunk option",
      "description": "Configures workbox-webpack-plugin GenerateSW (or equivalent) with importScriptsViaChunks set directly from the provided chunkNames so the generated service worker imports those chunk scripts.",
      "max_score": 30
    },
    {
      "name": "No precache overlap",
      "description": "Ensures assets referenced via importScriptsViaChunks are excluded from the precache manifest (e.g., relying on the plugin's exclusion or explicitly setting excludeChunks) so those chunk URLs only appear in the importScripts list.",
      "max_score": 25
    },
    {
      "name": "Missing chunk warn",
      "description": "Propagates the package's warning for unknown chunk names (when a name is absent from the compilation) through the onWarning callback or equivalent hook.",
      "max_score": 15
    },
    {
      "name": "Empty chunk warn",
      "description": "Detects when importScriptsViaChunks resolves to zero JS assets for a named chunk and routes the package's warning for that condition to onWarning.",
      "max_score": 10
    },
    {
      "name": "Order & dedupe",
      "description": "Builds the importScriptsViaChunks array without duplicates and in the order chunkNames are first provided so runtime imports match the requested sequence.",
      "max_score": 10
    },
    {
      "name": "Additional imports order",
      "description": "Places any additionalImports entries ahead of chunk-based imports using the package's importScripts option so pre-chunk scripts load before the chunk scripts.",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

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

tile.json