Skip to content

Commit c41dd48

Browse files
amercaderduttonw
authored andcommitted
[ckan#8596] Don't encode binary font files when building frontend
There was a change in gulp 5 that defaulted the stream encoding to UTF8. To preserve binary files like fonts you need to pass `{encoding: false}` Reference: gulpjs/gulp#2797
1 parent ac2500c commit c41dd48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const fontAwesomeCss = () =>
6969
);
7070

7171
const fontAwesomeFonts = () =>
72-
src(__dirname + "/node_modules/@fortawesome/fontawesome-free/webfonts/*").pipe(
72+
src(__dirname + "/node_modules/@fortawesome/fontawesome-free/webfonts/*", {"encoding": false}).pipe(
7373
dest(__dirname + "/ckan/public/base/vendor/fontawesome-free/webfonts")
7474
);
7575

0 commit comments

Comments
 (0)