enapps-enorman opened a new pull request, #14:
URL: https://github.com/apache/sling-org-apache-sling-starter-content/pull/14
Gulp can corrupt WOFF files, particularly when using Gulp v5 or higher, due
to changes in how Gulp handles file encoding by default. Specifically, Gulp v5
attempts to encode binary files like WOFF fonts as UTF-8, which can lead to
corruption if the binary data contains sequences that are not valid UTF-8.
These invalid sequences are then converted to the Unicode replacement character
(U+FFFD), which corrupts the file.
To prevent this corruption, the encoding: false option must be explicitly
set when using gulp.src() for binary files. This ensures Gulp treats the files
as raw buffers and avoids any unintended encoding.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]