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