awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
clean-css avatar

clean-css/clean-css

0
View on GitHub↗
4,201 stars·318 forks·JavaScript·MIT·23 viewsclean-css.github.io↗

Clean Css

Clean-CSS is a Node.js CSS optimizer that functions as a minifier, bundler, and post-processor. It is designed to decrease total stylesheet volume by removing whitespace, comments, and redundant code.

The project provides a pipeline for applying custom transformations and browser compatibility adjustments. It allows for the programmatic modification of CSS rules and values through a plugin system and the use of custom optimization plugins.

The tool covers a broad range of asset optimization capabilities, including stylesheet bundling, import rule inlining, and relative URL rebasing. It also supports source map generation for debugging and customizable output formatting for beautification.

Features

  • CSS Minification - Compresses stylesheets by removing whitespace, comments, and redundant code to reduce total file size.
  • Stylesheet Bundling - Concatenates multiple CSS files or strings into a single optimized output bundle while maintaining order.
  • CSS Processors - Implements a processing pipeline for applying custom transformations and browser compatibility adjustments to stylesheets.
  • CSS Transformation Plugins - Implements a plugin system specifically designed to modify the CSS abstract syntax tree during optimization.
  • Abstract Syntax Tree Parsing - Parses stylesheets into a structured tree representation to enable programmatic rule merging and selector simplification.
  • CSS Selector Minification - Simplifies complex selectors and rules to reduce the total byte count of the output.
  • CSS Bundlers - Aggregates multiple stylesheets into a single output file and resolves inline import rules.
  • CSS Minifiers - Minifies CSS files by removing unnecessary characters, whitespace, and merging redundant rules.
  • CSS Optimizers - Provides a JavaScript-based engine to optimize CSS properties and selectors to minimize overall stylesheet size.
  • CSS Property Minification - Reduces size by merging adjacent rules and shortening color representations.
  • Frontend Asset Optimization - Optimizes frontend assets by compressing CSS and refining properties to decrease the total byte count sent to browsers.
  • CSS AST Transformations - Programmatically modifies CSS structures and values using tree traversal and plugins for custom requirements.
  • Remote Dependency Inliners - Fetches and merges external CSS import rules from remote sources directly into the local stylesheet during build.
  • CSS Source Mapping - Generates source maps that link minified CSS production files back to their original source code for debugging.
  • Source Map Generation - Generates mapping files between original source CSS and the optimized output for debugging.
  • CSS Rule Preservation Markers - Uses specialized preservation comments to prevent the removal of specific style rules during optimization.
  • Browser Compatibility Targets - Adjusts output behavior based on defined minimum browser versions to ensure compatibility with legacy environments.
  • CSS Value Optimizers - Shortens color and gradient parameters into their smallest possible valid representations using optimization plugins.
  • CSS Optimization Levels - Provides selectable optimization levels to control the aggressiveness of CSS code reduction.
  • CSS Pipeline Extensions - Enables the definition of custom logic within the minification pipeline to modify CSS rules.
  • URL Relative Path Resolvers - Recalculates relative asset paths dynamically to ensure images and fonts remain linked when stylesheets are moved.
  • CSS Import Inlining - Resolves and merges CSS import statements from local or remote sources directly into the stylesheet.
  • Asset Optimization - Fast and efficient CSS minification for Node.js.
  • Code Minifiers - CSS file minification and optimization.

Star history

Star history chart for clean-css/clean-cssStar history chart for clean-css/clean-css

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Clean Css

These projects share indexed features with Clean Css. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • goalsmashers/clean-cssGoalSmashers avatar

    GoalSmashers/clean-css

    4,202View on GitHub↗

    clean-css is a Node.js CSS optimizer that functions as a minifier, bundler, and source map generator. It reduces stylesheet file sizes by removing whitespace and comments while optimizing colors and units to improve page load times. The tool features a plugin-driven pipeline that allows for custom optimization transformations and the preservation of specific code fragments via marker-based exclusions. It includes browser compatibility targeting to ensure optimized styles remain functional across specified browser versions. The project provides capabilities for bundling multiple stylesheets i

    JavaScript
    View on GitHub↗4,202
  • jakubpawlowicz/clean-cssjakubpawlowicz avatar

    jakubpawlowicz/clean-css

    4,202View on GitHub↗

    Clean-CSS is a Node.js CSS optimizer and minifier designed to reduce stylesheet file sizes and improve web performance. It functions as a CSS post-processor that removes unnecessary whitespace, comments, and redundant properties from stylesheets. The project utilizes an abstract syntax tree for parsing and a multi-pass optimization pipeline to restructure rules and simplify properties. It features a plugin interface for custom style transformations and provides compatibility-aware minification to ensure styles remain functional across specific legacy browser versions. Additional capabilities

    JavaScript
    View on GitHub↗4,202
  • css/cssocss avatar

    css/csso

    3,792View on GitHub↗

    csso is a CSS minifier and optimizer that reduces stylesheet file sizes through structural analysis and algebraic transformations. It functions as an abstract syntax tree processor, converting styles into a structured tree to perform deep analysis and semantic-preserving code transformations while maintaining the original visual presentation. The project distinguishes itself through usage-aware optimization, analyzing external HTML markup and class identifiers to prune unused styles and reorganize rules based on actual document usage. It also performs structural refactoring by identifying and

    JavaScript
    View on GitHub↗3,792
  • parcel-bundler/parcel-cssparcel-bundler avatar

    parcel-bundler/parcel-css

    7,576View on GitHub↗

    parcel-css is a high-performance CSS bundler and processor written in Rust. It provides tools for parsing, transforming, and bundling stylesheets, utilizing a structured abstract syntax tree with typed property representations to ensure accurate analysis and modification. The project features a syntax lowerer that transpiles modern CSS into compatible versions based on target browser requirements and an automated system for managing vendor prefixes. It also includes a module scoper that isolates class and ID identifiers to prevent global namespace collisions. Additional capabilities include

    Rust
    View on GitHub↗7,576
Compare all 30 related projects→

Frequently asked questions

What does clean-css/clean-css do?

Clean-CSS is a Node.js CSS optimizer that functions as a minifier, bundler, and post-processor. It is designed to decrease total stylesheet volume by removing whitespace, comments, and redundant code.

What are the main features of clean-css/clean-css?

The main features of clean-css/clean-css are: CSS Minification, Stylesheet Bundling, CSS Processors, CSS Transformation Plugins, Abstract Syntax Tree Parsing, CSS Selector Minification, CSS Bundlers, CSS Minifiers.

Which projects share features with clean-css/clean-css?

Projects with overlapping indexed features include: goalsmashers/clean-css — clean-css is a Node.js CSS optimizer that functions as a minifier, bundler, and source map generator. It reduces… jakubpawlowicz/clean-css — Clean-CSS is a Node.js CSS optimizer and minifier designed to reduce stylesheet file sizes and improve web… css/csso — csso is a CSS minifier and optimizer that reduces stylesheet file sizes through structural analysis and algebraic… parcel-bundler/parcel-css — parcel-css is a high-performance CSS bundler and processor written in Rust. It provides tools for parsing,… nmfr/optimize-css-assets-webpack-plugin — This project is a Webpack plugin designed to automate the compression and refinement of CSS assets during the module… parcel-bundler/lightningcss — Lightning CSS is a high-performance CSS toolchain implemented in Rust. It provides a comprehensive suite of tools for…