logo
  • 教程列表
  • SO官方文檔
  • 建立一個觀察者
    • 看守任務
  1. StackOverflow 文件
  2. gulp 教程
  3. 建立一個觀察者
  4. 看守任務

看守任務

Created: November-22, 2018

config.paths.html 表示 HTML 檔案的路徑。

gulp.task("watch", function() {
    gulp.watch(config.paths.html, ["html"]);
});

該任務也應新增到預設值:

gulp.task("default", ["html", "watch"]);
  • 建立一個觀察者

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明