jouni-kantola / ruin

A CSS post-processor that saves bytes over the wire by shortening names of CSS classes.
MIT License
2 stars 0 forks source link

first ruined view #3

Open jouni-kantola opened 8 years ago

jouni-kantola commented 8 years ago

Rewrite file (i.e. html file) using regex match.

jouni-kantola commented 8 years ago

We got a bit of scaffolding up by reading/writing files, but not much else for this one.

jouni-kantola commented 8 years ago

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.