gulp-webserver icon indicating copy to clipboard operation
gulp-webserver copied to clipboard

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

Open jackp opened this issue 11 years ago • 2 comments

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({}))

jackp avatar Jul 16 '14 02:07 jackp

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

jackp avatar Jul 16 '14 03:07 jackp

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

schickling avatar Jul 16 '14 08:07 schickling