Highly configurable, well-tested, JavaScript-based HTML minifier with extensive optimization options
86
{
"context": "Evaluates how well the solution leverages the html-minifier CLI to process files, STDIN, and directories using its built-in batching and config loading features. Scoring focuses solely on correct flag usage and reliance on the package binary rather than reimplementing minification.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CLI binary",
"description": "Invokes the package's `html-minifier` CLI (not the programmatic API) as the core minification mechanism, wiring the helper around that binary.",
"max_score": 20
},
{
"name": "Config loading",
"description": "Uses the CLI's `-c/--config-file` option to load the provided JSON config and applies it across single-file, STDIN, and directory runs without re-parsing options manually.",
"max_score": 20
},
{
"name": "File output",
"description": "For single-file input, calls the CLI with an explicit input file and `-o/--output` target to produce the expected minified file content (doctype preserved, scripts inlined).",
"max_score": 20
},
{
"name": "STDIN/STDOUT",
"description": "Supports piping HTML through the CLI by omitting an input file (using `-` for STDIN if needed) and no output flag so that minified content is emitted on STDOUT while honoring the config options.",
"max_score": 15
},
{
"name": "Directory batch",
"description": "Runs the CLI with `--input-dir`, `--output-dir`, and an extension filter such as `--file-ext html,htm` to recursively emit minified counterparts for HTML/HTM files while leaving other asset types untouched.",
"max_score": 25
}
]
}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