xem / miniMinifier

HTML/CSS/JS minifiers in 128+ bytes
103 stars 8 forks source link

property stacking #17

Open tomhodgins opened 7 years ago

tomhodgins commented 7 years ago

This one really surprised me - it did it with color, background, lots of things!

html {
  background: red;
}
html {
  background: orange;
}
html {
  background: yellow;
}
html {
  background: green;
}
html {
  background: blue;
}
html {
  background: indigo;
}
html {
  background: violet;
}

correct minification

html{background:violet}

CSSnano output

html{background:red;background:orange;background:#ff0;background:green;background:blue;background:indigo;background:violet}