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
A tool that optimizes CSS selectors by applying various transformations to reduce file size while maintaining functionality.
nth-child(1), the optimizer converts it to first-child @testnth-last-child(1), the optimizer converts it to last-child @testnth-of-type(1), the optimizer converts it to first-of-type @testnth-last-of-type(1), the optimizer converts it to last-of-type @testnth-child(2n), the optimizer preserves it unchanged @testnth-child(odd), the optimizer preserves it unchanged @test@generates
/**
* Optimizes CSS by applying selector transformations.
*
* @param {string} css - The CSS string to optimize.
* @returns {string} The optimized CSS string.
*/
function optimize(css) {
// IMPLEMENTATION HERE
}
module.exports = {
optimize
};Provides CSS optimization and minification support.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10