gulp
Skapa en bevakare
Sök…
Watcher uppgift
config.paths.html
representerar sökvägen till din HTML-fil.
gulp.task("watch", function() {
gulp.watch(config.paths.html, ["html"]);
});
Uppgiften bör också läggas till som standard:
gulp.task("default", ["html", "watch"]);
Modified text is an extract of the original Stack Overflow Documentation
Licensierat under CC BY-SA 3.0
Inte anslutet till Stack Overflow