dartiss/CSSquish

Color replacement

Opened this issue · 1 comments

Although I compress hex values there are further improvements to be made by...

  1. Replace hex with color names, if shorter
  2. Replace colour names with hex, if shorter
  3. All of the above, but with decimal RGB equivalents. In this case, I'll convert to hex first before running it through steps 1 and 2.
  4. I also need to consider RGBA definitions. In this case, I'll convert them to hex versions. Again, I'll do this before steps 1 and 2.

The first 2 are now complete with the recent PR.