About TailwindHelper
With this MODX Revolution extra all used CSS classes in chunks, templates, resources and template variables are collected and saved to a safelist.json file. This safelist can be used to avoid purging the used CSS classes in a MODX installation.
Information
Released
November 20, 2026
Supported Database
MySQL
License
GPLv2
Instructions
Install through package manager.
New in 1.1.0-pl
Added
- Scan the default values of template variables, the files of static resources and the files of template variable
@FILEbindings - Detect the classes in Alpine.js
x-bind:classattributes and in MODX tag properties withclassorclsin their name like&hereClass
Changed
- Scan all text files in the
tailwindhelper.filepathsfolders and skip the sub folders that can't be read - Restrict the menu entry and the scan to manager users with the
settingspermission - Don't expose server paths in the manager page options
Fixed
- Find the classes in class attributes with line breaks or escaped quotes (i.e. in JSON, nested MIGX values or PHP strings), in output modifiers with multiple or nested classes and in If snippet
&thenand&elsevalues - Keep Tailwind classes with
[[in arbitrary values likegrid-cols-[[full-start]_1fr] - Read the files of static chunks and templates and all ContentBlocks templates: inline,
@FILEand@PDO_FILEtemplates and the template properties of the fields - Write the
safelist.jsonreliably: skip classes that are not valid UTF-8 instead of writing an empty file, show the write errors and use the right default folder - Enable the buttons of the scan console window, if the scan fails