diff --git a/gulpfile.js b/gulpfile.js index 653a5f5..584cc9a 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -144,7 +144,9 @@ gulp.task("generate sprites", ["resize lg"], function() { //template: "./client/scss/_cards.hbs" }) .pipe(imagemin()) - .pipe(gulpif("*.png", rename({ + .pipe(gulpif(function (file) { + return file.path.match(".*\\.png$") != null; + }, rename({ extname: ".PNG" }))) .pipe(gulp.dest("./public/build/"));