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
It not works and return a error cause can not find the variable of @x.
I had tried debug the source code of less and I found the code:
The height need read this variable and execute the function of variable and be cached.
It lead to the function of variable can not run again when the width read the @x.
I changed the code that will clear the cache when the function return a Declaration.
To reproduce:
I want to define a variable in plugin. It will insert
@x: 33px
to current scope.When I write the code to a less file:
It works and return the css code:
But when I write the code to a less file:
It not works and return a error cause can not find the variable of @x.
I had tried debug the source code of less and I found the code:
The height need read this variable and execute the function of variable and be cached.
It lead to the function of variable can not run again when the width read the @x.
I changed the code that will clear the cache when the function return a Declaration.
I tried to fix the code. URL
Current behavior:
Expected behavior:
Environment information:
less
version:nodejs
version:operating system
:The text was updated successfully, but these errors were encountered: