Skip to content

Commit c2c7860

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 e26f29c commit c2c7860

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
@@ -45,12 +45,12 @@ if (process.env.NOTIFY_ENVIRONMENT == 'development') { // pass through if on dev
4545

4646
const copy = {
4747
error_pages: () => {
48-
return src(paths.src + 'error_pages/**/*')
48+
return src(paths.src + 'error_pages/**/*', { encoding: false })
4949
.pipe(dest(paths.dist + 'error_pages/'))
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
header_icon_manifest: () => {

0 commit comments

Comments
 (0)