-
Notifications
You must be signed in to change notification settings - Fork 190
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
css variable declaration calc minification #506
Comments
It is sorta hard if there are any unknown parameters like variables in there (e.g. lightningcss/src/properties/custom.rs Line 380 in 1203368
From there, it would need to try parsing each possible type that supports lightningcss/src/properties/custom.rs Lines 460 to 470 in 1203368
The difference would be using Let me know if you have questions! |
Thanks for the explanation, started the implementation in #526. I will let you know when its ready or if I have questions! |
Currently, the following calc expression will not be minified:
I know that it would break js code that relies on the computed style value for that property.
I will consider trying to implement this if there is a chance that it will get merged (as an opt-in option),
otherwise feel free to close :)
The text was updated successfully, but these errors were encountered: