Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop a gulp watch task?

How do I stop a running gulp watch task without having to completely exit the program?

I can see the task running on the task bar bottom left with a spinning "slashes" character.

There appears to be a command "Terminate running task" (that can optionally be bound to a keyboard short-cut) - but executing this command doesn't seem to do anything and the task continues to run. Is this feature not implemented yet in the current preview version (0.1.0)?

like image 331
LyphTEC Avatar asked May 05 '15 05:05

LyphTEC


People also ask

What is Gulp watch command?

The watch() API connects globs to tasks using a file system watcher. It watches for changes to files that match the globs and executes the task when a change occurs. If the task doesn't signal Async Completion, it will never be run a second time.

How do I run a gulp task?

in the Before launch area and choose Run Gulp task from the list. In the Gulp task dialog that opens, specify the Gulpfile. js where the required task is defined, select the task to execute, and specify the arguments to pass to the Gulp tool. Specify the location of the Node.

What is Gulp clean?

Declare Dependencies and Create Tasks gulp. task('clean:build', function() { return del. sync('build'); }); The above task will clean entire build. The clean task clears any image catches and removes any old files present in build.


2 Answers

In case others run across this question, open the Command Palette (Ctrl+Shift+P on Windows, Command+Shift+P on OSX, and search for "Terminate Running Task."

like image 142
JasCav Avatar answered Sep 19 '22 11:09

JasCav


If you ever wonder what

search for "Terminate Running Task."

does behind the scenes: "workbench.action.tasks.terminate".

so you can just bind it, like this:

{ "key": "ctrl+shift+t", "command": "workbench.action.tasks.terminate" }
like image 20
doubleorseven Avatar answered Sep 21 '22 11:09

doubleorseven