-
Notifications
You must be signed in to change notification settings - Fork 24
Description
The built jquery distribution can be too large in some situations (mobile devices). Being able to use only modules you are really interested in is an important feature. It would be nice if the webjars distribution would include besides final distribution (all submodules merged), also all available submodules. This is something I find useful not only for jquery webjar, but for other libraries (ex: yui, etc). The idea is to allow the webjars client to choose whether he want to use final distribution, or build it itself from discrete modules available in webjar.
Proposed solution:
the jquery webjar should contain src folder containing the submodule sources from jquery library: https://github.com/jquery/jquery/tree/master/src
As a result, if the client needs only a small subset of features from jquery library, he can build it by himself.
Another proposal is to not keep minimized resources in webjar, since the minimization can be handled by a specialized library or service (on runtime or buildtime) using one of the preferred minimization algorithm (jsMin, dojoShrinksafe, google closure, yuiMin, uglify, etc)... I see webjar nothing but a mavenized source holder. I'm curious about what you guys think about it.
Thanks,
Alex