hiddentao / gulp-server-livereload

Gulp plugin to run a local webserver with livereload enabled via socket.io. Also comes with standalone command-line interface.
MIT License
93 stars 28 forks source link

How to provide custom path in following object directoryListing #28

Open vittal288 opened 8 years ago

vittal288 commented 8 years ago

I have to open HTML templates files from template directory instead of loading index.html from base directory

gulp.task('webserver', function() { gulp.src(gulpConfig.sourceDir) .pipe(server({ livereload: true, directoryListing:{ path:'templates' }, open: true })); });

hiddentao commented 8 years ago

Sorry, not sure I understand what you want here. By default the plugin serves up the index.html file within the folder you supply it. You can tell it to proxy requests to another server if you like.