Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Css Class Collector (Purge CSS)

No security coverage Drupal 10–11
View on drupal.org

This module automatically scans your Drupal site and collects all CSS classes used in database-driven content. It generates a list of actually used CSS classes, which is useful for CSS optimization workflows that require accurate safelists to prevent the removal of dynamic or backend-generated classes.

CSS Class Collector (useful for CSS purging)

The CSS Class Collector module automatically scans your Drupal site
and collects all CSS classes used in database-driven content.

It generates a reliable, real-world list of CSS classes actually used across the site.
This is especially useful for projects using PurgeCSS,
Tailwind CSS, Bootstrap, or any CSS optimization
workflow that depends on accurate safelists to prevent removal of dynamic or
backend-generated classes.

By using this module, you can safely purge unused CSS without breaking layouts
or functionality.

Steps to purge CSS(if using bootstrap_barrio as base theme)

  1. Copy bootstrap.min.css and build-css.js from the module
    into your custom theme directory root.
  2. Run the following command from the custom theme directory:
    node build-css.js

Depends on

Dependencies of the latest stable release

  • block_content Drupal core
  • node Drupal core
  • paragraphs Drupal core
  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Nov 2025
Latest release
8 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.4 Stable 10–11 Dec 29, 2025
1.0.3 Stable 10–11 Dec 29, 2025
1.0.2 Stable 10 Dec 29, 2025
1.0.0 Stable 10 Nov 26, 2025
1.0.x-dev Dev 10 Nov 26, 2025