Skip to content

Commit

Permalink
Prevent gulp to corrupt png images
Browse files Browse the repository at this point in the history
See this thread:
gulpjs/gulp#2803
  • Loading branch information
thibault committed Jul 2, 2024
1 parent 9fb7cb0 commit 6417a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function scripts() {

// Image compression
function imgCompression() {
return src(`${paths.images}/*`)
return src(`${paths.images}/*`, { removeBOM: false })
.pipe(imagemin()) // Compresses PNG, JPEG, GIF and SVG images
.pipe(dest(paths.images))
}
Expand Down

0 comments on commit 6417a70

Please sign in to comment.