From 8b33f804d1caeb73666f0661b8c6a0041b716e05 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Tue, 30 Apr 2024 01:49:46 +0300 Subject: [PATCH] Disable gulp.src encoding `encoding: 'utf8'` combined with `removeBOM: true` corrupt non-text files. --- gulpfile.babel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 56a95cc..8ff8079 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -57,7 +57,7 @@ function searchFonts() { // Copy unmodified assets function copy() { - return gulp.src(paths.assets.src) + return gulp.src(paths.assets.src, { encoding: false }) .pipe(gulp.dest(paths.assets.dest)); }