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

Fallback not working with directoryListing

Open davejlong opened this issue 11 years ago • 1 comments

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.

davejlong avatar Sep 08 '14 14:09 davejlong

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.

mickeyvip avatar Dec 01 '14 10:12 mickeyvip