schickling / gulp-webserver

Streaming gulp plugin to run a local webserver with LiveReload
https://www.npmjs.org/package/gulp-webserver
MIT License
356 stars 84 forks source link

Fallback not working with directoryListing #34

Open davejlong opened 10 years ago

davejlong commented 10 years ago

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.

mickeyvip commented 9 years ago

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.