Is there any option to insert some LESS mixin in to JS code?
I have this border-radius mixin:
.border_radius(@radius: 5px) {
border-radius: @radius;
-moz-border-radius: @radius;
-webkit-border-radius: @radius;
}
So is there any possible to add this mixin in to jQuery code?
var less = require('less');
$('.circle').css({
width: width, height: width,
less.border_radius(10px);
});
css()function does not include a renderer for LESS.js.