gimm / gulp-live-server

serve your nodejs/static app live
148 stars 71 forks source link

Delay due to files in current directory #65

Open jonkri opened 7 years ago

jonkri commented 7 years ago

Upon starting a server with gls('main.js').start(), I'm experiencing a delay due to the presence of my node_modules directory in the current directory. Moving the node_modules directory out of the way (for instance with mv node_modules ..) removes the delay.

I may be missing something obvious in the documentation, but is there a way to get rid of this delay? Is it perhaps possible (and meaningful) to instruct gulp-live-server to configure tiny-lr to serve another directory instead (or perhaps disable static file serving altogether)?

Thanks!