wishthis/node_modules/less/test/browser/runner-main-options.js

17 lines
399 B
JavaScript
Raw Permalink Normal View History

2022-01-21 08:28:41 +00:00
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');
}
}
};