Skip to content

Commit bcdccf9

Browse files
committed
Set encode false on gulp copy tasks
Gulp v5 streams now default to UTF-8 encoding. Most usage of gulp won’t need to change anything, but certain plugins may produce non-UTF-8 output and you’ll need to set `{ encoding: false }` on your gulp streams. It appears images and fonts (gulpjs/gulp#2790) get affected hence our test was failing https://concourse.notify.tools/builds/114181855#L666d232d:1367
1 parent 7e26e79 commit bcdccf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const copy = {
5050
},
5151
govuk_frontend: {
5252
fonts: () => {
53-
return src(paths.govuk_frontend + 'govuk/assets/fonts/**/*')
53+
return src(paths.govuk_frontend + 'govuk/assets/fonts/**/*',{ encoding: false })
5454
.pipe(dest(paths.dist + 'fonts/'));
5555
},
5656
}
@@ -161,7 +161,7 @@ const images = () => {
161161
return src([
162162
paths.src + 'images/**/*',
163163
paths.govuk_frontend + 'govuk/assets/images/**/*'
164-
])
164+
],{ encoding: false })
165165
.pipe(dest(paths.dist + 'images/'))
166166
};
167167

0 commit comments

Comments
 (0)