We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe716bb commit ddd4213Copy full SHA for ddd4213
1 file changed
lib/browser-sync.js
@@ -705,6 +705,15 @@ BrowserSync.prototype.cleanup = function (cb) {
705
bs.events.removeAllListeners();
706
}
707
708
+ // Close any core file watchers
709
+ if (bs.watchers) {
710
+ Object.keys(bs.watchers).forEach(function (key) {
711
+ bs.watchers[key].watchers.forEach(function (watcher) {
712
+ watcher.close();
713
+ });
714
715
+ }
716
+
717
// Run any additional clean up tasks
718
bs._cleanupTasks.forEach(function (fn) {
719
if (_.isFunction(fn)) {
0 commit comments