DEV Community

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

Collapse
derder56 profile image
DerDer56 Author • Edited on

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*\/"
}
Enter fullscreen mode Exit fullscreen mode
Collapse
derder56 profile image
DerDer56 Author

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