-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@plugin
documentation
#328
Comments
Yeah, this needs to happen. It's probably Less's coolest new feature that has yet to be known about. |
edit Seems to be working, though getting "less" inside your plugin is a bit annoying test.js
something.less
Test it like this: I think for simple js plugins with no node command, the "less" should be given as a global to the local plugin. Or alternatively the |
I'm with @Ciantic, there needs to be an easier way to get to Less from a plugin. |
Actually, it works like this: test.js functions.add('myfunction', function() {
return new tree.Color('ff0000');
}); The variables new Function("functions", "tree", "fileInfo", contents); |
@thorn0 https://github.com/less/less.js/blob/3.x/lib/less/environment/abstract-plugin-loader.js#L65 |
This is a general call for documentation for the use of
@plugin
at http://lesscss.org/usage/#plugins. (See less/less.js#2416, and pull requests less/less.js#2479 & less/less.js#2522).The text was updated successfully, but these errors were encountered: