When using lessc
on the commandline, I can pass the option --modify-var="my-var=my-val"
.
How can I pass the same option when I use less programmatically via API with less.render(lessInput, options)
?
I would somehow hope that I can set a property in options
like {modifyVar:'my-var=my-val'}
. But this seems not to work and I didn't find any documentation regarding this use case.
Thanks for any help.