posthtml-minify-classnames icon indicating copy to clipboard operation
posthtml-minify-classnames copied to clipboard

Is it possible to minify class names inside <?php ?>?

Open semdzh opened this issue 4 years ago • 4 comments

For example from: <?php echo '<div class="tw-text-gray-500 tw-uppercase"></div>'; ?> to: <?php echo '<div class="a b"></div>'; ?>

semdzh avatar Aug 22 '21 14:08 semdzh

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

Scrum avatar Aug 23 '21 08:08 Scrum

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

Hey, @Scrum Is there any ready-made solution that has already been used with posthtml? I would be grateful for a hint.

semdzh avatar Aug 23 '21 17:08 semdzh

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.

Scrum avatar Aug 23 '21 18:08 Scrum

related to https://github.com/posthtml/posthtml-minify-classnames/issues/34

Scrum avatar Dec 27 '23 07:12 Scrum