adamgian / minify-selectors

Post-processor to minify class and ID selector names.
Apache License 2.0
8 stars 0 forks source link

Don't bother parsing or encoding selectors that are only used in HTML #33

Closed adamgian closed 1 year ago

adamgian commented 1 year ago

i.e. people doing this in their markup attributes to group/separate groups of classes:

<div class="[ foo  foo--bar ]  baz">
<div class="col m_4 t_6 d_8 / country-list / box box--rounded box--semi-transparent box--bottom-texture">

Square braces and the slashes are superficial here if they are not appearing anywhere else (e.g. stylesheets and js).

Would expect the above to be rewritten, for example, into:

<div class="[ a  b ]  c">
<div class="d e f g / h / i j k l">
adamgian commented 1 year ago

Tests are now up to date.