posthtml-minify-classnames
posthtml-minify-classnames copied to clipboard
Is it possible to minify class names inside <?php ?>?
For example
from: <?php echo '<div class="tw-text-gray-500 tw-uppercase"></div>'; ?>
to: <?php echo '<div class="a b"></div>'; ?>
For example from:
<?php echo '<div class="tw-text-gray-500 tw-uppercase"></div>'; ?>to:<?php echo '<div class="a b"></div>'; ?>
This requires a PHP parser
For example from:
<?php echo '<div class="tw-text-gray-500 tw-uppercase"></div>'; ?>to:<?php echo '<div class="a b"></div>'; ?>This requires a
PHPparser
Hey, @Scrum Is there any ready-made solution that has already been used with posthtml? I would be grateful for a hint.
Is there any ready-made solution that has already been used with posthtml? I would be grateful for a hint.
I haven't seen this yet, but it's a good idea.
related to https://github.com/posthtml/posthtml-minify-classnames/issues/34