How to use the tree function from less
Find comprehensive JavaScript less.tree code examples handpicked from public code repositorys.
20 21 22 23 24 25 26 27 28 29
function absolute(imported, asset){ return path.resolve(path.dirname(imported), asset); } function patchImport(less){ var Import = less.tree.Import; less.tree.Import = function(path, features, options, index, currentFileInfo){ options.less = true; options.inline = false; this.options = options;
3
5
2
+ 15 other calls in file
less.render is the most popular function in less (129 examples)