less.js icon indicating copy to clipboard operation
less.js copied to clipboard

How to get user defined variables in a function added in a plugin?

Open zhaoyao91 opened this issue 5 years ago • 1 comments

We use a variable to define a prefix which user may override it, and we defined a function inside a plugin which will consume this variable.

Currently we have to pass in this prefix variable in every usage. Is there a way to peek the current variables in the function call?

zhaoyao91 avatar Jul 27 '20 15:07 zhaoyao91

What do you mean by "current variables"?

matthew-dean avatar Dec 12 '20 02:12 matthew-dean