fix images not being displayed

This commit is contained in:
Mikołaj Biel 2017-06-09 23:36:28 +02:00
parent b57067d809
commit 1ba61635f0
1 changed files with 3 additions and 1 deletions

View File

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