Browse Source

Merge pull request #403 from Arktomson/feat/myself

feat: 增加watch的gulp配置
Alien-阿烈叔(烈神) 5 tháng trước cách đây
mục cha
commit
6a2a95fee3
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      gulpfile.js

+ 8 - 0
gulpfile.js

@@ -214,3 +214,11 @@ gulp.task('default',
         zipPackage
     )
 );
+
+gulp.task("watch", () => {
+    gulp.watch("apps/**/*.js", ["sync"]);
+    gulp.watch("apps/**/*.css", ["sync"]);
+    gulp.watch("apps/**/*.html", ["sync"]);
+    gulp.watch("apps/**/*.json", ["sync"]);
+    gulp.watch("apps/**/*.{gif,png,jpg,jpeg,cur,ico}", ["sync"]);
+});