awesome-repositories.com
Blog
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
·
FullHuman avatar

FullHuman/purgecss

0
View on GitHub↗
8,043 estrellas·244 forks·TypeScript·MIT·2 vistaspurgecss.com↗

Purgecss

PurgeCSS es un purificador y optimizador de CSS para pipelines de compilación, diseñado para reducir el tamaño final de las hojas de estilo. Funciona como una herramienta de tree shaking que analiza archivos HTML y JavaScript para identificar y eliminar selectores CSS no utilizados.

La herramienta optimiza las cargas útiles de CSS realizando un análisis estático del contenido para detectar qué estilos se utilizan realmente en el marcado. Utiliza coincidencia de patrones basada en expresiones regulares para encontrar nombres de clases potenciales sin ejecutar código y emplea una transformación de AST basada en PostCSS para eliminar de forma segura las reglas no utilizadas.

El proyecto proporciona capacidades para la automatización de compilaciones frontend, permitiendo que la eliminación de estilos no utilizados se integre directamente en empaquetadores de módulos y ejecutores de tareas. También incluye un filtro de lista blanca personalizada para preservar selectores esenciales, independientemente de si se detectan durante el análisis del contenido.

Features

  • CSS Selector Purging - Removes CSS rules whose selectors do not match any elements found during the static content scan.
  • Content Pattern Matching - Uses regex-based pattern matching to identify potential CSS class names within HTML and JavaScript files.
  • CSS AST Transformations - Employs a PostCSS-based AST transformation to safely remove unused rules from the stylesheet structure.
  • Markup Usage Analysis - Scans HTML and JavaScript files to create a comprehensive list of all CSS selectors used in the markup.
  • CSS Payload Reduction - Reduces the total byte size of delivered CSS by purging redundant and unused rules.
  • CSS Unused Style Removers - Automates the removal of unused styles by integrating with module bundlers and task runners.
  • CSS Build Tools - Acts as a build-time engine that scans source files to optimize and compile CSS styles.
  • Frontend Build Toolchains - Integrates style cleanup directly into the frontend build toolchain for automated deployment.
  • Build Tool Integrations - Integrates directly as an extension within common build systems to automate stylesheet optimization.
  • CSS Selector Whitelists - Provides a whitelist filter to ensure essential CSS selectors are preserved regardless of content analysis.
  • Web Performance Tuning - Eliminates dead CSS code to decrease browser rendering time and minimize data transfer.
  • CSS Optimization - Remove unused CSS to reduce file size.

Historial de estrellas

Gráfico del historial de estrellas de fullhuman/purgecssGráfico del historial de estrellas de fullhuman/purgecss

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

Preguntas frecuentes

¿Qué hace fullhuman/purgecss?

PurgeCSS es un purificador y optimizador de CSS para pipelines de compilación, diseñado para reducir el tamaño final de las hojas de estilo. Funciona como una herramienta de tree shaking que analiza archivos HTML y JavaScript para identificar y eliminar selectores CSS no utilizados.

¿Cuáles son las características principales de fullhuman/purgecss?

Las características principales de fullhuman/purgecss son: CSS Selector Purging, Content Pattern Matching, CSS AST Transformations, Markup Usage Analysis, CSS Payload Reduction, CSS Unused Style Removers, CSS Build Tools, Frontend Build Toolchains.

¿Qué alternativas de código abierto existen para fullhuman/purgecss?

Las alternativas de código abierto para fullhuman/purgecss incluyen: uncss/uncss — Uncss is a build pipeline CSS optimizer and optimization tool designed to remove unused styles from stylesheets. It… purifycss/purifycss — PurifyCSS is a CSS unused style remover and payload optimizer that analyzes HTML and templates to identify and delete… uncss/grunt-uncss — grunt-uncss is a CSS dead code eliminator and static analysis build tool. It functions as a Grunt CSS optimization… windicss/windicss — Windi CSS is a utility-first CSS framework that generates only the CSS classes actually used in a project, scanning… cssnano/cssnano — cssnano is a CSS compression tool and minifier that reduces the file size and gzip footprint of stylesheets. It… facebook/stylex — StyleX is a type-safe CSS-in-JS library and atomic CSS compiler that transforms JavaScript style definitions into…

Alternativas open-source a Purgecss

Proyectos open-source similares, clasificados según cuántas características comparten con Purgecss.
  • 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
  • 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
  • uncss/grunt-uncssAvatar de uncss

    uncss/grunt-uncss

    3,795Ver en GitHub↗

    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

    HTML
    Ver en GitHub↗3,795
  • windicss/windicssAvatar de windicss

    windicss/windicss

    6,515Ver en GitHub↗

    Windi CSS is a utility-first CSS framework that generates only the CSS classes actually used in a project, scanning source files at build time to produce smaller, optimized stylesheets. It provides on-demand style generation through static analysis of HTML and template files, eliminating unused styles for leaner output. The framework offers a plugin-based extension system for adding custom utilities, variants, and design tokens without modifying the core. It includes built-in compatibility for migrating from Tailwind CSS, removing Tailwind-specific dependencies and configuration fields while

    TypeScriptcsscss-compileron-demand
    Ver en GitHub↗6,515
  • Ver las 30 alternativas a Purgecss→