-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Minify CSS Files option and CSS Custom Properties #371
Comments
Thanks for the report. I will look into fixing this! |
Are you using the latest version? When I minify span {
margin:var(--a,5px)
} I get |
Hey @tdewolff If the value is not 0, everything works as expected, but if you have the following property: Regards, |
Ok, pushed out a fix. It's a quick-fix, functionality around functions should definitively be improved. |
Hey @tdewolff Do you have any plans to release a new CLI version with this patch included? Regards, |
Yes! See 2.9.14 |
Wow, that was fast. Thanks a lot :) |
Hey @tdewolff
In some cases where we make calculations with calc() – this breaks everything because the calc function doesn’t know what units to take into consideration
It should be like this margin: var(--margin, 0px) but the minify makes it like this margin: var(--margin, 0) – without unit.
Is there a flag or something we can use to leave the units for calc values only?
Regards,
Stanimir
The text was updated successfully, but these errors were encountered: