-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gulp v5 corrupt font files #2797
Comments
Same issue with images and fonts |
Had a same issue. Fixed it like this (
|
Thank you @KikelDmitry , confirmed working with your fix |
Dupe of other open tickets, closing. Docs in the docs folder and release blog post have this but website needs to be updated still. |
The website is updated now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What were you expecting to happen?
Gulp copies the binary files verbatim
What actually happened?
Contents of the files were modified with unicode placeholders.
Please give us a sample of your gulpfile
Terminal output / screenshots
Please provide the following information:
node -v
): v20.12.1npm -v
): 10.5.2gulp -v
): CLI version: 3.0.0Local version: 5.0.0
Additional information
Switching back to gulp 4.0.2 fixes the issue (files are binary identical).
Switching back to gulp 5.0.0 reproduces the issue.
The source .woff file started with:
With gulp v5, the bin copy of the .woff file starts with:
(there are many more instances of that Unicode escape sequence in the woff file)
Troubleshooting
Tried specifying
{ encoding: "binary" }
in thegulp.src
call but that just changes bytes in different ways. (this variation also works as expected in gulp v4 but not in v5)Below is the output from gulp v5:
The text was updated successfully, but these errors were encountered: