StackOverflow 文件 gulp 教程 建立一個觀察者 看守任務 看守任務 Created: November-22, 2018 config.paths.html 表示 HTML 檔案的路徑。 placeholderCopygulp.task("watch", function() { gulp.watch(config.paths.html, ["html"]); });該任務也應新增到預設值: placeholderCopygulp.task("default", ["html", "watch"]); 建立一個觀察者