Yireo_DumpCmsContent

PHP 8.1 - 8.4
Magento 2.4.7 | 2.4.8
CSP Yes
Latest Release 1.0.0

Magento version PHP version License Latest Version

A Magento 2 module that adds a CLI bin/magento cms:dump to dump all CMS pages and CMS blocks to a folder var/cms-output.

Why?

This module was developed with Hyva Themes in mind: With a theme based on Hyva, your Tailwind CSS will need to be purged before going into production. For this, you would configure the Tailwind configuration to look into certain content folders to make sure CSS utility classes that are actually used, are not purged from the production CSS. Unfortunately, this does not work with the database.

Once you add Tailwind CSS classes to your CMS Blocks and CMS Pages (via the Magento Admin Panel, for instance by using some Tailwind-oriented WYSIWYG editor, or by inserting code manually), these CSS classes might or might not be purged, which could lead to incorrect CSS styling. To prevent this from happening, this module allows you to dump CMS contents to a folder var/cms-output, which could then be included in the Tailwind configuration:

module.exports = {
    ...
    purge: {
        content: [
            ...
            '../../../../../../../var/cms-output/**/*.html'
        ]
    }
}

Current status

Static Tests Unit Tests Integration Tests Playwright DI Compilation

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_DumpCmsContent

Composer details
Magento module name
Yireo_DumpCmsContent
Composer name
yireo/magento2-dump-cms-content
Composer version
No release yet
Default branch
master
Requirements
magento/framework: ^103.0
php: >=8.2 <8.6
Releases
1.0.0 23 October 2026
Changelog

[1.0.0] - 09 October 2025

Fixed

  • Copy generic CI/CD files
  • Fix PHP 8.4 issue in Symfony Command
  • Add success return code
  • New license
  • Update composer.json

Last modified: October 17, 2026