linkedin/opticss

Optimization: Normalize color values

soluml opened this issue · 1 comments

Based on postcss-colormin: http://cssnano.co/optimisations/colormin/

example:

.color1 {
  color: white;
}
.color2 {
  color: rgb(255, 255, 255);
}

becomes

.a {
  color: #fff;
}

In general, normalizing values would let us merge them better. I've filed this issue against the property parser. Because it's property-aware, it can do the best job normalizing values.

mahirshah/css-property-parser#17