Skip to content

Commit 6417a70

Browse files
committed
Prevent gulp to corrupt png images
See this thread: gulpjs/gulp#2803
1 parent 9fb7cb0 commit 6417a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function scripts() {
9191

9292
// Image compression
9393
function imgCompression() {
94-
return src(`${paths.images}/*`)
94+
return src(`${paths.images}/*`, { removeBOM: false })
9595
.pipe(imagemin()) // Compresses PNG, JPEG, GIF and SVG images
9696
.pipe(dest(paths.images))
9797
}

0 commit comments

Comments
 (0)