tapio / live-server

A simple development http server with live reload capability.
http://tapiov.net/live-server/
4.4k stars 484 forks source link

Polling option for file watch to support usage in WSL 2 #405

Open tsherif opened 1 year ago

tsherif commented 1 year ago

Motivation: The method used by live-server to track file changes doesn't work in the Windows Subsystem for Linux V2 (see here for details). This can be fixed by enabling the usePolling option in chokidar.

Changes: Add --poll command line and poll API options to live-server, set to false by default, which enable usePolling in chokidar. Update documentation.