wzrd.in
wzrd.in copied to clipboard
Package multiple modules together
Would be nice if we could do something like:
//wzrd.in/bundle/[email protected]/[email protected]
Which would permanently redirect to the alphabetically sorted URL:
//wzrd.in/bundle/[email protected]/[email protected]
Which would then serve the combined package of those two modules, as if we did:
browserify -r backbone -r query-engine
This would be amazingly cool, as it would reduce duplication of modules that are included in separate packages, instead, all modules only get bundled once.
It'll also get super super cool when jQuery v2.1 is officially out with npm support. That way we could then do things like:
//wzrd.in/bundle/[email protected]/[email protected]/[email protected]
Of which, miniview and pointers both include this line in their source:
$ = @$ or window?.$ or (try require?('jquery'))
Allowing us to finally have a world where global dependencies are abolished!
Implementation wise, this seems like a nicer API for the POST /multi
functionality: https://github.com/jesusabdullah/browserify-cdn#post-multi
+1
+1, if we could use GET requests for that it would be awesome since we can give people friendly copy/paste HTML without setting up a redirect.
If Max +1's it, I'm cool with it.
would be great to get this in
Might be mutually exclusive with #107 .
+1. Would also be helpful if there was just a /core, or something to that effect, which just bundled all the built-in node modules