ソースを参照

Gulp Speed Up... a bit

Sebastien Vandenberghe 7 年 前
コミット
ea69bcaa9d
1 ファイル変更6 行追加0 行削除
  1. 6 0
      Tools/Gulp/gulpfile.js

+ 6 - 0
Tools/Gulp/gulpfile.js

@@ -226,7 +226,13 @@ gulp.task("build", ["shaders"], function () {
 /*
 * Compiles all typescript files and creating a js and a declaration file.
 */
+var alreadyCompiled = false;
 gulp.task("typescript-compile", function () {
+    if (alreadyCompiled) {
+        return;
+    }
+    alreadyCompiled = true;
+
     var tsResult = gulp.src(config.typescript)
         .pipe(sourcemaps.init())
         .pipe(tsProject());