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"]); 创建一个观察者