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

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
uncss avatar

uncss/grunt-uncss

0
View on GitHub↗
3,795 estrellas·170 forks·HTML·MIT·2 vistas

Grunt Uncss

grunt-uncss is a CSS dead code eliminator and static analysis build tool. It functions as a Grunt CSS optimization plugin that identifies and deletes redundant style rules to reduce stylesheet file sizes and improve frontend performance.

The tool analyzes HTML files and headless browser DOM states to detect styles that do not match any elements in the markup. It supports the protection of specific selectors through whitelists to ensure that styles for dynamically injected elements are preserved during the cleanup process.

The project covers frontend asset minification by compressing cleaned stylesheets into a compact format. It integrates these optimization and minification tasks directly into Grunt build pipelines to maintain lean web assets.

Features

  • Dead Code Elimination - Identifies and deletes redundant style rules through static analysis to reduce stylesheet file sizes.
  • CSS Unused Style Removers - Identifies and deletes unused CSS selectors by analyzing HTML markup and rendered DOM states.
  • CSS AST Analysis - Uses abstract syntax trees to analyze CSS stylesheets and identify redundant style rules for removal.
  • HTML Static Analysis - Performs static analysis on HTML markup to identify unique class names and redundant styles.
  • Class and Identifier Extraction - Scans source HTML files to identify unique class names and identifiers used as style targets.
  • Syntax Tree Analysis - Employs syntax tree analysis to evaluate selector specificity and match rules against active elements.
  • Frontend Performance Optimization - Implements automated removal of unused CSS selectors to improve page load speeds and overall frontend performance.
  • Headless Rendering Engines - Utilizes a headless rendering engine to evaluate computed styles and determine which CSS selectors are active.
  • Web Asset Minifiers - Compresses cleaned stylesheets into a compact format to minimize the total payload delivered to the browser.
  • CSS Minification - Reconstructs cleaned CSS rules into a compact format to minimize final file size.
  • Static Source Analysis - Parses web project source code without execution to detect and eliminate styles that do not match any elements.
  • Build Automation - Integrates CSS optimization and minification tasks directly into a Grunt-based build automation workflow.
  • Build Pipeline Integrations - Integrates the CSS cleanup process as a standard step within the project build pipeline.
  • Build Tool Integrations - Provides native Grunt task integrations to automate CSS cleaning and minification in build workflows.
  • Frontend Asset Compression - Compresses cleaned stylesheets into a compact format to reduce the frontend payload.
  • Selector Preservation - Ensures CSS remains functional for dynamically injected content by protecting specific selectors during cleanup.
  • CSS Selector Purging - Protects designated CSS selectors from being purged to ensure styles remain for runtime elements.
  • Selector Exclusion Strategies - Allows defining a list of styles to ignore during cleanup to protect dynamically injected elements.
  • CSS Selector Whitelists - Provides whitelists to protect specific CSS selectors from being removed during the cleanup process.
  • Build Automation Pipelines - Provides an automated pipeline for cleaning and optimizing CSS assets as part of the production build process.
  • Asset Optimization - Removes unused CSS selectors via Grunt.

Historial de estrellas

Gráfico del historial de estrellas de uncss/grunt-uncssGráfico del historial de estrellas de uncss/grunt-uncss

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Grunt Uncss

Proyectos open-source similares, clasificados según cuántas características comparten con Grunt Uncss.
  • fullhuman/purgecssAvatar de FullHuman

    FullHuman/purgecss

    8,043Ver en GitHub↗

    PurgeCSS is a build-pipeline CSS purger and optimizer designed to reduce the final size of stylesheets. It functions as a tree shaking tool that scans HTML and JavaScript files to identify and remove unused selectors from CSS. The tool optimizes CSS payloads by performing static content analysis to detect which styles are actually used in the markup. It uses regex-based pattern matching to find potential class names without executing code and employs a PostCSS-based AST transformation to safely delete unused rules. The project provides capabilities for frontend build automation, allowing the

    TypeScript
    Ver en GitHub↗8,043
  • purifycss/purifycssAvatar de purifycss

    purifycss/purifycss

    9,863Ver en GitHub↗

    PurifyCSS is a CSS unused style remover and payload optimizer that analyzes HTML and templates to identify and delete unused CSS selectors from stylesheets. It functions as a frontend build automation tool that integrates into development pipelines to automatically strip redundant styles and minify assets during the compilation phase. The tool provides specific optimization for single page applications, identifying and removing redundant CSS while ensuring necessary styles are preserved across dynamic views and states. The utility covers a range of capabilities including static content analy

    JavaScript
    Ver en GitHub↗9,863
  • cssnano/cssnanoC

    cssnano/cssnano

    4,974Ver en GitHub↗

    cssnano is a CSS compression tool and minifier that reduces the file size and gzip footprint of stylesheets. It operates as a build pipeline optimizer and code transformer that removes whitespace and comments while shortening colors and gradients into their smallest possible representations. The tool uses a modular plugin architecture and preset-based optimization levels to balance compression intensity with browser compatibility. It allows for the adjustment of output based on a target list of supported browsers to ensure minified styles remain compatible across different environments. The

    CSS
    Ver en GitHub↗4,974
  • uncss/uncssAvatar de uncss

    uncss/uncss

    9,408Ver en GitHub↗

    Uncss is a build pipeline CSS optimizer and optimization tool designed to remove unused styles from stylesheets. It analyzes HTML files to identify and strip selectors that do not match any elements in the markup, reducing the final stylesheet size and overall web page weight. The tool functions as a DOM-based CSS analyzer that can simulate runtime document states. It provides mechanisms to preserve required selectors through the use of literal names, regular expressions, and specialized CSS comment markers to ensure styles triggered by user interactions are not deleted. The project supports

    JavaScriptbuild-toolcleanupcss
    Ver en GitHub↗9,408
Ver las 30 alternativas a Grunt Uncss→

Preguntas frecuentes

¿Qué hace uncss/grunt-uncss?

grunt-uncss is a CSS dead code eliminator and static analysis build tool. It functions as a Grunt CSS optimization plugin that identifies and deletes redundant style rules to reduce stylesheet file sizes and improve frontend performance.

¿Cuáles son las características principales de uncss/grunt-uncss?

Las características principales de uncss/grunt-uncss son: Dead Code Elimination, CSS Unused Style Removers, CSS AST Analysis, HTML Static Analysis, Class and Identifier Extraction, Syntax Tree Analysis, Frontend Performance Optimization, Headless Rendering Engines.

¿Qué alternativas de código abierto existen para uncss/grunt-uncss?

Las alternativas de código abierto para uncss/grunt-uncss incluyen: fullhuman/purgecss — PurgeCSS is a build-pipeline CSS purger and optimizer designed to reduce the final size of stylesheets. It functions… purifycss/purifycss — PurifyCSS is a CSS unused style remover and payload optimizer that analyzes HTML and templates to identify and delete… cssnano/cssnano — cssnano is a CSS compression tool and minifier that reduces the file size and gzip footprint of stylesheets. It… uncss/uncss — Uncss is a build pipeline CSS optimizer and optimization tool designed to remove unused styles from stylesheets. It… css/csso — csso is a CSS minifier and optimizer that reduces stylesheet file sizes through structural analysis and algebraic… didi/chameleon — Chameleon is a cross-platform application framework and component library used to develop applications for the web and…