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

{
  "context": "Evaluates whether the solution drives html-minifier with the correct parse-mode controls: strict vs tolerant parsing, casing behavior, and selective handling of nonstandard script types.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses minify",
      "description": "Calls html-minifier's `minify` API to produce output rather than reimplementing parsing or whitespace handling.",
      "max_score": 15
    },
    {
      "name": "Strict errors",
      "description": "Runs malformed input without `continueOnParseError` so html-minifier surfaces a parse error for offending tags when tolerant mode is off.",
      "max_score": 25
    },
    {
      "name": "Tolerant mode",
      "description": "Enables `continueOnParseError: true` when tolerance is requested, allowing minification to complete and return output despite invalid nesting.",
      "max_score": 25
    },
    {
      "name": "Casing preserved",
      "description": "Sets `caseSensitive: true` for requests that need custom tag/attribute casing kept intact in the minified result.",
      "max_score": 20
    },
    {
      "name": "Script filtering",
      "description": "Supplies the allowed MIME list to `processScripts` (with `minifyJS` enabled) so only whitelisted script types are minified and others remain untouched.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-html-minifier

tile.json