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

[FIX] Allow fallback file to work when passing in multiple root directories #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jackp
Copy link

@jackp jackp commented Jul 16, 2014

Since the fallback file gets set after every directory is served, the request will never be able to hit any subsequent directories.

This PR sets the fallback files at the end of the stream, therefore allowing users to use

gulp.src(['web', 'tmp'])
.pipe(webserver({}))

Jack Parker added 2 commits July 15, 2014 22:36
If passing in multiple root directories, the
fallback file gets set after each directory is
served, therefore never reaching the additional
directories.
@jackp
Copy link
Author

jackp commented Jul 16, 2014

This feature is working fine for me, but I'm having trouble getting the test to pass

@schickling
Copy link
Owner

Thanks @jackp for your PR. Please fix the tests, I want to keep the CI env healthy 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants