From d61171f3e1ecb22736242960779885e09b0fc59a Mon Sep 17 00:00:00 2001 From: Wire Date: Fri, 20 Sep 2024 14:19:49 -0400 Subject: [PATCH] Fix CDN building bad binary assets --- browserassets/gulpfile.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browserassets/gulpfile.mjs b/browserassets/gulpfile.mjs index abc6111ee0272..de6df6a55e2c3 100644 --- a/browserassets/gulpfile.mjs +++ b/browserassets/gulpfile.mjs @@ -100,7 +100,7 @@ function javascript(cb) { } function images(cb) { - return src(sources.images) + return src(sources.images, { encoding: false }) .pipe(imagemin([ optipng({ optimizationLevel: 2 }) ])) @@ -110,7 +110,7 @@ function images(cb) { function copy(cb) { return src( ["vendor/**/*", "css/fonts/**/*", "misc/**/*", "tgui/**/*"], - { base: dirs.src }, + { base: dirs.src, encoding: false }, ) .pipe(replace(resourceMacroRegex, `${cdn}/$1?v=${rev}`)) .pipe(dest(dirs.dest));