Open jouni-kantola opened 8 years ago
We got a bit of scaffolding up by reading/writing files, but not much else for this one.
What's most important here is to preserve order. I.e:
<a href="#" class="btn btn--cta">CTA</a>
In the above example, the generated short class names for btn
and btn--cta
must remain in the same order.
Rewrite file (i.e. html file) using regex match.