Skip to content

Commit

Permalink
FIX:10.06.2024:19:32 => фиксы для задач на копирование шрифтов и карт…
Browse files Browse the repository at this point in the history
…инок, больше информации тут: gulpjs/gulp#2803
  • Loading branch information
Ko2doo committed Jun 10, 2024
1 parent 51b8150 commit f0a2902
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion gulp/tasks/fonts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};
8 changes: 7 additions & 1 deletion gulp/tasks/images.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
};

0 comments on commit f0a2902

Please sign in to comment.