loading...

Discussion on: How to build a CSS minifier with 8 lines of Javascript

Collapse
lyrod profile image
Lyrod

Your minifier is not correct

main .foo .bar {
  display: none;
}

Will be translated to

main.foo.bar{display:none}

Which is not the same thing.

Collapse
derder56 profile image
DerDer56 Author

Ok, I'm working on a fix for this...

Collapse
derder56 profile image
DerDer56 Author

Fix found! I'm updating the post now...