How do you stop files from being watched?
I have not seen the method in the docs which seems a bit odd to me.
The Watch method is used to monitor your source files. When any changes to the source file is made, the watch will run an appropriate task. You can use the 'default' task to watch for changes to HTML, CSS, and JavaScript files.
It's not a gulp thing. Gulp is just running as a never ending process.
The way to abort a process is Ctrl+C.
According the official document. you can using returned stream
method to stop it.
let watchStream = gulp-watch(paths, function(){}) watchStream.close()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With