I have the following task in my gulpfile.js that renames files .js to .min.js :
gulp.task('js', function () {
return gulp.src(paths.scripts.src)
.pipe(gulpif(prod, uglify()))
.pipe(rename({ suffix: '.min' }))
.pipe(gulp.dest(paths.scripts.dest));
});
However, I need some way to ignore Rename of files that are already ".min.js". Any ideas how to do this?