Browse Source

gui-renaming correctly

Raanan Weber 7 years ago
parent
commit
8a58d66138
1 changed files with 5 additions and 4 deletions
  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
                 );