Skip to content

fix: fonts are broken when copying (at least on Windows)#4

Open
SeryiBaran wants to merge 1 commit into
eliofery:mainfrom
SeryiBaran:patch-1
Open

fix: fonts are broken when copying (at least on Windows)#4
SeryiBaran wants to merge 1 commit into
eliofery:mainfrom
SeryiBaran:patch-1

Conversation

@SeryiBaran
Copy link
Copy Markdown

@SeryiBaran SeryiBaran commented Aug 16, 2025

Thanks for good gulp template!

@SeryiBaran
Copy link
Copy Markdown
Author

Hey?

@siyazoff
Copy link
Copy Markdown

siyazoff commented Feb 9, 2026

В gulp/tasks/assets.mjs шрифты копируются так:

const fontsBuild = () => src([${config.src.assets.fonts}/**/*]).pipe(dest(${config.build.fonts}))

Тут src() без encoding: false, и бинарные файлы шрифтов проходят как текст (UTF-8).

Фикс

const fontsBuild = () =>
  src([`${config.src.assets.fonts}/**/*`], {
    encoding: false,
  }).pipe(dest(`${config.build.fonts}`))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants