gulp-webserver
gulp-webserver copied to clipboard
Fallback not working with directoryListing
I have this config:
gulp.src('.')
.pipe(webserver({
livereload: true,
directoryListing: true,
open: true,
fallback: 'index.html'
}));
When I run the task, instead of loading index.html, it loads directory listing. If I disable directoryListing, then it works.
In my case the fallback does not work, it does serve index.html, but when I put something else there, like index.dev.html it still looks for and serves (if found) index.html, or 404.