Fix the build issue mangling the png files

This commit is contained in:
Mathias Malmqvist
2025-09-28 23:39:57 +02:00
committed by dualshock-tools
parent 68bfe1388b
commit 6073803215
3 changed files with 4 additions and 4 deletions

View File

Before

Width:  |  Height:  |  Size: 449 B

After

Width:  |  Height:  |  Size: 449 B

View File

@@ -45,7 +45,7 @@ const paths = {
'web-app-manifest-192x192.png',
'web-app-manifest-512x512.png',
'site.webmanifest',
'donate.png',
'assets/donate.png',
'googlec4c2e36a49e62fa3.html',
'fa.min.css'
],
@@ -282,11 +282,11 @@ function languages() {
function assets() {
if (isProduction) {
// In production, SVGs are bundled into the HTML file, so only copy other assets
return gulp.src(paths.src.assets, { base: '.' })
return gulp.src(paths.src.assets, { base: '.', encoding: false })
.pipe(gulp.dest(paths.dist));
}
return gulp.src([...paths.src.assets, paths.src.svg], { base: '.' })
return gulp.src([...paths.src.assets, paths.src.svg], { base: '.', encoding: false })
.pipe(gulp.dest(paths.dist));
}

View File

@@ -15,7 +15,7 @@
<div class="collapse" id="ethereumCollapse">
<div class="card card-body">
<h5 class="card-title">Ethereum Address</h5>
<center><img src="donate.png" width="128px" /></center>
<center><img src="assets/donate.png" width="128px" /></center>
<input type="text" class="form-control" value="0x27dDA2f15A6A477fcdFB3709Ed0760aEF0246D5D" readonly />
</div>
</div>