i would like to know if there is a way to get the less parse results as object instead as compiled CSS? In the usage example we have:
var parser = new(less.Parser);
parser.parse('.class { width: (1 + 1) }', function (err, tree) {
if (err) { return console.error(err) }
console.log(tree.toCSS());
});
which is fine but I need to do some work withe the "raw" rules set in JavaScript. How one gets access to the rules set as an object. For instance:
var rules_set = {
selector:'xxxxxxx'
property1: 'xcv'
.
.
.
propertyX: ''
}
Thanks in advance!