Highly configurable, well-tested, JavaScript-based HTML minifier with extensive optimization options
86
{
"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-minifierdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9