How to use the Parser function from less

Find comprehensive JavaScript less.Parser code examples handpicked from public code repositorys.

146
147
148
149
150
151
152
153
154
155
options.render = options.render || function(str, lessPath, cssPath, callback) {

  var paths = [ path.dirname(lessPath) ];
  options.paths.forEach(function(p){ paths.push(p); });

  var parser = new less.Parser({
    paths: paths,
    filename: lessPath,
    optimization: options.optimization,
    dumpLineNumbers: options.dumpLineNumbers
fork icon77
star icon0
watch icon0