CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-clean-css

A well-tested CSS minifier providing fast and efficient CSS optimization and minification.

93

1.17x

Quality

Pending

Does it follow best practices?

Impact

93%

1.17x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses clean-css's local @import inlining capability to build a CSS bundling tool. The focus is on proper usage of clean-css's minify method with file path inputs and inline options to resolve and bundle CSS imports.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses clean-css minify",
      "description": "Creates an instance of CleanCSS and uses the minify method to process CSS files",
      "max_score": 20
    },
    {
      "name": "Passes file paths",
      "description": "Passes file paths (not CSS strings) to the minify method to enable automatic file reading and import resolution",
      "max_score": 25
    },
    {
      "name": "Enables inline option",
      "description": "Configures the inline option (either as true, 'local', or an array including 'local') to enable local @import inlining",
      "max_score": 30
    },
    {
      "name": "Handles output structure",
      "description": "Correctly accesses the minify output structure (styles, errors, warnings properties) and returns it appropriately",
      "max_score": 15
    },
    {
      "name": "Prevents duplicate imports",
      "description": "Relies on clean-css's built-in duplicate import prevention (automatic when using inline option) rather than implementing custom deduplication",
      "max_score": 10
    }
  ]
}

tile.json