lesscss-engine icon indicating copy to clipboard operation
lesscss-engine copied to clipboard

Append dynamic variables to engine.compile()

Open JpEncausse opened this issue 12 years ago • 1 comments

Hi, Is there a best practice to add dynamic @variable to engine ?

Let's say I have a file.less and would like to call:

  • engine.compile('file.less', map); where map contains @color = "#FF0000"
  • engine.compile('file.less', map); where map contains @color = "#00FF00"

It seems there is no bridge to change 'env'

JpEncausse avatar May 15 '13 16:05 JpEncausse

Is there something similar available in the command-line less.js compiler?

asual avatar May 29 '13 08:05 asual