浏览代码

Fix gulp watch functions

tags/5.0.0
Teknikode 1年前
父节点
当前提交
dad9de8606
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 4
    4
      IdentityServer/gulpfile.js
  2. 3
    3
      Teknik/gulpfile.js

+ 4
- 4
IdentityServer/gulpfile.js 查看文件

@@ -106,20 +106,20 @@ gulp.task("watch", function (done) {
// Watch Source Files
assets.forEach(function (src) {
for (var key in src) {
gulp.watch(key, ["copy-assets"]);
gulp.watch(key, gulp.parallel("copy-assets"));
}
});

// Watch Bundle File Itself
gulp.watch('./bundleconfig.json', ["load-bundle", "min"]);
gulp.watch('./bundleconfig.json', gulp.series("load-bundle", "min"));

// Watch Bundles
getBundles(".js").forEach(function (bundle) {
gulp.watch(bundle.inputFiles, ["min:js"]);
gulp.watch(bundle.inputFiles, gulp.parallel("min:js"));
});

getBundles(".css").forEach(function (bundle) {
gulp.watch(bundle.inputFiles, ["min:css"]);
gulp.watch(bundle.inputFiles, gulp.parallel("min:css"));
});

done();

+ 3
- 3
Teknik/gulpfile.js 查看文件

@@ -131,7 +131,7 @@ gulp.task("watch", function (done) {
// Watch Source Files
assets.forEach(function (src) {
for (var key in src) {
gulp.watch(key, ["copy-assets"]);
gulp.watch(key, gulp.parallel("copy-assets"));
}
});

@@ -140,11 +140,11 @@ gulp.task("watch", function (done) {

// Watch Bundles
getBundles(".js").forEach(function (bundle) {
gulp.watch(bundle.inputFiles, ["min:js"]);
gulp.watch(bundle.inputFiles, gulp.parallel("min:js"));
});

getBundles(".css").forEach(function (bundle) {
gulp.watch(bundle.inputFiles, ["min:css"]);
gulp.watch(bundle.inputFiles, gulp.parallel("min:css"));
});

done();

正在加载...
取消
保存