You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this seems very similar to this closed issue: #996
I'm using the latest gulp-clean-css (4.3.0) which I believe is a wrapper for clean-css.
I'm seeing spaces be removed from a complex :is() statement, changing the meaning of it. I've tried disabling spaces.aroundSelectorRelation but that didn't seem to help. The only thing I've found that solves it is changing optimisation to level 0, but that removes a lot of other nice stuff. See example...
EDIT:
The following option resolves it (which sort of makes sense):
@04alband i had the same issue but did not want to set all rules to false.
Also for me it was not removeWhitespace: false that fixed it, it was tidySelectors: false
Hi, this seems very similar to this closed issue: #996
I'm using the latest gulp-clean-css (4.3.0) which I believe is a wrapper for clean-css.
I'm seeing spaces be removed from a complex :is() statement, changing the meaning of it. I've tried disabling
spaces.aroundSelectorRelation
but that didn't seem to help. The only thing I've found that solves it is changing optimisation to level 0, but that removes a lot of other nice stuff. See example...EDIT:
The following option resolves it (which sort of makes sense):
I still wonder if this would be regarded as a bug though as the meaning of the CSS has changed. But I'm happy with this solution for the time being.
Environment
npm ls clean-css
: gulp-clean-css is 4.3.0node -v
: v16.14.2Configuration options
My gulp task is very simple, like this:
For the options, I've tried playing with many options but the default no-options produces the error.
Input CSS
Actual output CSS
Expected output CSS
If I'm doing something wrong, I'm sorry and any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: