awesome-repositories.com
المدونة
MCP
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
uncss avatar

uncss/grunt-uncss

0
View on GitHub↗
3,795 نجوم·170 تفرعات·HTML·MIT·2 مشاهدات

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.

سجل النجوم

مخطط تاريخ النجوم لـ uncss/grunt-uncssمخطط تاريخ النجوم لـ uncss/grunt-uncss

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

الأسئلة الشائعة

ما هي وظيفة 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.

ما هي الميزات الرئيسية لـ uncss/grunt-uncss؟

الميزات الرئيسية لـ uncss/grunt-uncss هي: 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.

ما هي البدائل مفتوحة المصدر لـ uncss/grunt-uncss؟

تشمل البدائل مفتوحة المصدر لـ uncss/grunt-uncss: 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…

بدائل مفتوحة المصدر لـ Grunt Uncss

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Grunt Uncss.
  • fullhuman/purgecssالصورة الرمزية لـ FullHuman

    FullHuman/purgecss

    8,043عرض على 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
    عرض على GitHub↗8,043
  • purifycss/purifycssالصورة الرمزية لـ purifycss

    purifycss/purifycss

    9,863عرض على 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
    عرض على GitHub↗9,863
  • cssnano/cssnanoC

    cssnano/cssnano

    4,974عرض على 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
    عرض على GitHub↗4,974
  • uncss/uncssالصورة الرمزية لـ uncss

    uncss/uncss

    9,408عرض على 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
    عرض على GitHub↗9,408
  • عرض جميع البدائل الـ 30 لـ Grunt Uncss→