Skip to content

Commit 78e4745

Browse files
committed
Fix for copying binary files in gulp 5.
Gulp5 requires passing `encoding: false` when copying binary files to prevent re-encoding as utf8.
1 parent 3f0ab29 commit 78e4745

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ gulp.task("copy-terriajs-assets", function () {
164164
var destPath = path.resolve(__dirname, "wwwroot", "build", "TerriaJS");
165165

166166
return gulp
167-
.src([sourceGlob], { base: terriaWebRoot })
167+
.src([sourceGlob], { base: terriaWebRoot, encoding: false })
168168
.pipe(gulp.dest(destPath));
169169
});
170170

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"fork-ts-checker-notifier-webpack-plugin": "^6.0.0",
6161
"fork-ts-checker-webpack-plugin": "^6.0.0",
6262
"fs-extra": "^7.0.1",
63-
"gulp": "^4.0.0",
63+
"gulp": "^5.0.0",
6464
"husky": "^8.0.3",
6565
"is-subdir": "^1.2.0",
6666
"json5": "^2.1.0",

0 commit comments

Comments
 (0)