Skip to content

Commit f563dc9

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 f563dc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gulpfile.js

Lines changed: 3 additions & 3 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: () => {
@@ -181,7 +181,7 @@ const images = () => {
181181
return src([
182182
paths.src + 'images/**/*',
183183
paths.govuk_frontend + 'govuk/assets/images/**/*'
184-
])
184+
], { encoding: false })
185185
.pipe(dest(paths.dist + 'images/'))
186186
};
187187

0 commit comments

Comments
 (0)