how to make Gulp stop watching 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()