live-server icon indicating copy to clipboard operation
live-server copied to clipboard

[Request] Pass watch options to chokidar

Open moos opened this issue 3 years ago • 0 comments

Issue description

Working on a mounted drive runs into chokidar issue and does not detect changes. The usePolling chokidar option fixes this. It'd be great if a watchOptions param can be passed to chokidar. e.g.

liveServer.start({
    root: '.',
    ignore: ['node_modules', 'vendor'],
    watchOptions: {
      usePolling: true
    },
});

Software details

I'm using WSL 2 on Windows 10. My working directory is on Windows (e.g., C:/dev/foo) and in WSL it's /mnt/c/dev/foo.

  • Command line used for launching live-server: n/a (using node)
  • OS: Win10/WSL 2
  • Browser (if browser related): n/a
  • Node.js version: v12.20.1
  • live-server version: 1.2.1

moos avatar Jan 15 '21 05:01 moos