A well-tested CSS minifier providing fast and efficient CSS optimization and minification.
93
Quality
Pending
Does it follow best practices?
Impact
93%
1.17xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
Build a CSS bundling tool that processes CSS files and produces a single optimized output file.
@generates
Your tool should accept a main CSS file path as input and produce a bundled, minified CSS output. The tool must handle CSS files that reference other stylesheets and combine them into a single file.
The tool should:
When processing CSS files:
The final output should be:
The tool should handle common error cases:
Create test cases in test/bundle.test.js that verify:
/**
* Bundles a CSS file and its dependencies into a single minified output
* @param {string} entryPath - Path to the main CSS file
* @returns {Promise<{styles: string, errors: Array<string>, warnings: Array<string>}>}
*/
async function bundle(entryPath) {
// Implementation here
}
module.exports = { bundle };Provides CSS minification and optimization support.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10