This project is not covered by Drupal’s security advisory policy.

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
Supporting organizations: 

Project information

Releases