Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Support combining files across multiple roots #9

Open
ericf opened this issue Apr 18, 2012 · 0 comments
Open

Support combining files across multiple roots #9

ericf opened this issue Apr 18, 2012 · 0 comments

Comments

@ericf
Copy link
Contributor

ericf commented Apr 18, 2012

It would be useful to support combining files which reside in different root paths in one HTTP request.

app.get('/js', combo.combine({rootPath: [
    __dirname + '/public/js',
    __dirname + '/shared/js'
]}), function (req, res) {
    res.send(res.body, 200);
});
http://example.com/js?models/photo.js&widget/lightbox.js

One tricky aspect of this is having ambiguous file paths when a file of the same path resides in both roots.

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

No branches or pull requests

1 participant