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

multiple source css files #32

Closed jouni-kantola closed 8 years ago

jouni-kantola commented 8 years ago

At the moment the workflow works on a per file basis. This won't hold in the long run. We have to:

  1. Find all files matching glob
  2. Parse out all css classes, in all files
  3. Create a list of short class names, matching the length of all source css classes
  4. Build map
  5. Replace content from each source css file
  6. Write updated files
jouni-kantola commented 8 years ago

Solved in https://github.com/davidxcheng/ruin/pull/34.