瀏覽代碼

gui-renaming correctly

Raanan Weber 7 年之前
父節點
當前提交
8a58d66138
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      Tools/Gulp/gulpfile.js

+ 5 - 4
Tools/Gulp/gulpfile.js

@@ -608,10 +608,11 @@ var buildExternalLibrary = function (library, settings, watch) {
                         if (isjs) this.push(file);
                         cb();
                     }))
-                    .pipe(rename(library.output.replace(".js", ".max.js")))
-                    .pipe(rename(library.output.replace(".min.max.", ".")))
-                    .pipe(rename(library.output.replace(".bundle.max.", ".")))
-                    .pipe(gulp.dest(outputDirectory));
+                    .pipe(rename(function (path) {
+                        console.log(path.basename);
+                        //path.extname === ".js"
+                        path.basename = path.basename.replace(".min", "")
+                    })).pipe(gulp.dest(outputDirectory));
                 sequence.push(
                     buildEvent
                 );