nizarmah / auto-minify

Minifies JS and CSS files in GitHub workflows.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CSS minification in :not()

ShockedPlot7560 opened this issue · comments

Currently, all spaces in the :not() function are removed, breaking most conditions. Example:

ul > li:not(.class ul > li, .another-class ul > li) {
        display: none;
}

will become :

ul>li:not(.classul>li,.another-classsul>li){display:none;}

Oh. I never had that use case.

Thanks for reporting it.
I'll make sure to address it.

I need some time, though.
Ironic, saying it after 2 years. I know.

Hey! Small update regarding this: the issue was with Clean CSS.

Clean CSS was updated in #40 which fixed this issue.
Lightning CSS, added in #36, also resolves this issue.

I haven't created the release yet, but it'll resolve this issue.
I'll update the thread by the end of this week when I do.

Hello again @ShockedPlot7560. Thanks again for reporting this btw!

I've released v3, which contains the fix. I'm closing this.

Don't hesitate to open a new issue if you run into any issues.
This time I assure you the response time will be much better 😅.