CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-html-minifier

Highly configurable, well-tested, JavaScript-based HTML minifier with extensive optimization options

86

1.17x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "Evaluates whether the solution routes HTML through html-minifier and relies on its built-in attribute and class sorting features without introducing unrelated minification. Focuses on correct option wiring, default behaviors, and honoring user toggles.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Minifier invocation",
      "description": "Uses html-minifier's `minify` entry point to process the provided HTML instead of reimplementing parsing or sorting manually.",
      "max_score": 25
    },
    {
      "name": "Attribute sorting option",
      "description": "Enables the `sortAttributes` option (boolean or function) so attribute ordering is handled by html-minifier's frequency-based logic when sorting is requested.",
      "max_score": 20
    },
    {
      "name": "Class sorting option",
      "description": "Enables the `sortClassName` option so class token reordering is performed by html-minifier rather than custom string manipulation.",
      "max_score": 20
    },
    {
      "name": "Toggle handling",
      "description": "Maps user-level toggles to html-minifier options: disabling attribute sorting passes `sortAttributes: false` while leaving class sorting intact, and vice versa.",
      "max_score": 15
    },
    {
      "name": "Limited options",
      "description": "Keeps unrelated html-minifier options at defaults/false to preserve whitespace, comments, and content, enabling only the sorting features required by the task.",
      "max_score": 20
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-html-minifier

tile.json