loading...

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

Collapse
ziizium profile image
Habdul Hazeez

Try the following in your minifier:

/**
 * This comment is not minified
 */
main {
    display: none;
}
/* This comment is minified */
Collapse
derder56 profile image
DerDer56 Author

I'll try to find a solution for that.

Collapse
derder56 profile image
DerDer56 Author

Solution found! Get rid of comments after doing everything else. Thanks for telling me about this!