Browse Source

Merge pull request #403 from Arktomson/feat/myself

feat: 增加watch的gulp配置
Alien-阿烈叔(烈神) 5 months ago
parent
commit
6a2a95fee3
1 changed files with 8 additions and 0 deletions
  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"]);
+});