Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gulp:Error while running from Visual Studio Post Build Event

I am trying to run gulp default task on VS 2010 Post Build Event like

cd $(ProjectDir) gulp

But VS Freezes when i click on Build Solution while same is working fine on command window. Anyone faced this issue earlier or help me in this?

like image 562
Atul Sirpal Avatar asked Nov 10 '22 09:11

Atul Sirpal


1 Answers

Edit: Visual Studio 2015 now has full support for gulp, with hooks to make it much easier to integrate.


Old answer: This is because gulp-watch is a long-running process; it's watching files for changes, and so does not exit.

Perhaps on your post-build task, you could use something like cmdow to fire off the task in a separate process, which should let the build "finish" properly.

like image 76
Jarrod Mosen Avatar answered Nov 15 '22 06:11

Jarrod Mosen