Skip to content

Commit

Permalink
Fix CDN building bad binary assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirewraith committed Sep 20, 2024
1 parent fb079d9 commit d61171f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browserassets/gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
]))
Expand All @@ -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));
Expand Down

0 comments on commit d61171f

Please sign in to comment.