1
I have the following task in my gulpfile.js which renames files .js for .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 to somehow bypass the Rename of files that are already ".min.js". Any idea how to do this?