Skip to content
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

client and server side plugins #5

Open
bassjobsen opened this issue Jan 4, 2015 · 0 comments
Open

client and server side plugins #5

bassjobsen opened this issue Jan 4, 2015 · 0 comments

Comments

@bassjobsen
Copy link

as reply on less/less.js#1386 (comment).
I think using plugins to distribute custom functions is a nice feature. For that reason i wondered if the Plugin Manager also should have a function object (just like vitsitors or postprocessors).

I also wonder what will be the best way to go to distribute plugin for server and client side (browser usage). For https://github.com/bassjobsen/less-plugin-cubehelix i implemented the strategy which can be found at: http://caolanmcmahon.com/posts/writing_for_node_and_the_browser/

Although the above seems to work i also found that i can not split up my code in different files is not possible. Sever side got a usage function and client side not.

Or should plugins always have two versions for client and server side?

Finally i'm looking for the way to distribute the client side plugins. Installing server side is that simple as npm install What can be used for client side? Packages like bower?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant