node.js - Avoid gulp task to finish automatically -


i need gulp task stop finish automatically. have file watchers works after gulp finish, prints that:

[10:26:38] using gulpfile ~\gulpfile.js [10:26:38] starting "watch"... [10:26:38] finished "watch" after 1.34 ms  [10:26:38] file modified abc.css. [10:26:38] file modified def.js. 

basically do:

gulp.task("watch", function () {     // using require("gulp-watch")     startwatchers(); }); 

i found simple solution, don't know if best. returned instance of node stream. basically:

gulp.task("watch", function () {     // using require("gulp-watch")     startwatchers();      // using require("stream");     return new stream(); }); 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -