From 1ba61635f02387cf679224f86ff1f80324c1221e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miko=C5=82aj=20Biel?= <biel.mikolaj@openmailbox.org>
Date: Fri, 9 Jun 2017 23:36:28 +0200
Subject: [PATCH] fix images not being displayed

---
 gulpfile.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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/"));