loading...

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

Collapse
derder56 profile image
DerDer56 Author

content attributes are currently not supported, as this is a simple minifier. Also, technically speaking, I don't see why somebody would do this.

Anybody could just do:

div::before {
  display: block;
  content: "/\*not a comment*\/"
}
Collapse
sandro_roth profile image
Sandro

Absolutely, there is no reason to do that 😁

Thread Thread
derder56 profile image
DerDer56 Author

Yep. But thanks for telling me anyway!

Collapse
derder56 profile image
DerDer56 Author

But if anyone knows how to prevent comment minification inside quotes, I could update the script.