Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tasks/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ module.exports = function(grunt) {
var self = this;
var name = self.name || 'watch';

if (!grunt.config.get([name, target])) {
return grunt.fail.fatal('Grunt ' + name + ' does not have a target called ' + target);
}

// Close any previously opened watchers
watchers.forEach(function(watcher) {
watcher.close();
Expand Down