Files
less.js/packages/less/test/browser/runner-main-options.js
Matthew Dean 2c5e4dd9b9 Lerna refactor / TS compiling w/o bundling (#3521)
* Lerna refactor / TS compiling w/o bundling
* Adds package-lock.json
2020-06-22 05:41:38 -07:00

17 lines
399 B
JavaScript

var less = {
logLevel: 4,
errorReporting: 'console'
};
less.functions = {
add: function(a, b) {
return new(less.tree.Dimension)(a.value + b.value);
},
increment: function(a) {
return new(less.tree.Dimension)(a.value + 1);
},
_color: function(str) {
if (str.value === 'evil red') {
return new(less.tree.Color)('600');
}
}
};