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
By default, cssnano strips the variable down to 0, which makes the resulting calc() statement invalid.
I can fix this by disabling the convertValues option, but it's unfortunate to remove that everywhere just for one case. Because CSS variables could be used in various places where the units might matter, shouldn't they be left intact?
The text was updated successfully, but these errors were encountered:
I have a problem very similar to MoOx/reduce-css-calc#7, except I'm storing
0px
in a CSS variable and then using that in acalc()
statement:By default, cssnano strips the variable down to
0
, which makes the resultingcalc()
statement invalid.I can fix this by disabling the
convertValues
option, but it's unfortunate to remove that everywhere just for one case. Because CSS variables could be used in various places where the units might matter, shouldn't they be left intact?The text was updated successfully, but these errors were encountered: