From f0a29024158d445f1bca017513bf7ed7cb95d9dc Mon Sep 17 00:00:00 2001 From: Ko2doo Date: Mon, 10 Jun 2024 19:34:17 +0500 Subject: [PATCH] =?UTF-8?q?FIX:10.06.2024:19:32=20=3D>=20=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D1=81=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=B7=D0=B0=D0=B4?= =?UTF-8?q?=D0=B0=D1=87=20=D0=BD=D0=B0=20=D0=BA=D0=BE=D0=BF=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D1=88=D1=80=D0=B8=D1=84?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=20=D0=B8=20=D0=BA=D0=B0=D1=80=D1=82=D0=B8?= =?UTF-8?q?=D0=BD=D0=BE=D0=BA,=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=20?= =?UTF-8?q?=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86=D0=B8=D0=B8=20?= =?UTF-8?q?=D1=82=D1=83=D1=82:=20https://github.com/gulpjs/gulp/issues/280?= =?UTF-8?q?3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulp/tasks/fonts.mjs | 6 +++++- gulp/tasks/images.mjs | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gulp/tasks/fonts.mjs b/gulp/tasks/fonts.mjs index 0328cd7..bb0be1f 100644 --- a/gulp/tasks/fonts.mjs +++ b/gulp/tasks/fonts.mjs @@ -8,5 +8,9 @@ 'use strict'; export const fonts = () => { - return app.gulp.src(app.path.src.fonts).pipe(app.gulp.dest(app.path.build.fonts)); + return app.gulp + .src(app.path.src.fonts, { + encoding: false, + }) + .pipe(app.gulp.dest(app.path.build.fonts)); }; diff --git a/gulp/tasks/images.mjs b/gulp/tasks/images.mjs index b4551f7..1cc64c7 100644 --- a/gulp/tasks/images.mjs +++ b/gulp/tasks/images.mjs @@ -10,7 +10,13 @@ export const images = () => { return app.gulp - .src(app.path.src.images) + .src(app.path.src.images, { + // -> Данные параметры устраняют поломку картинок в gulp версии 5 + // страница с описанием ошибки: https://github.com/gulpjs/gulp/issues/2803 + encoding: false, + buffer: true, + removeBOM: false, + }) .pipe(app.gulp.dest(app.path.build.images)) .pipe(app.plugins.browsersync.stream()); };