Open antonioaltamura opened 3 years ago
It seems like it works with an array of filepaths (cause chokidar can handle both cf. https://github.com/paulmillr/chokidar)
But in the source code, it expects an array for the watch
option.
See https://github.com/tapio/live-server/blob/master/index.js#L120
But I agree that the docs does not reflect this.
Hope this helps.
It seems using live-server through node
watch
directories are simply ignored. I mean if I definewatch
in my js configuration file, the directories are not recognised and the hot/live reload simple won't work at all.const liveServer = require("live-server");
live-server
:node live-server.js
live-server
version: 1.2.1