bugfix: minor legibility changes
move elements around and less jitter on the crt effect because it was kinda annoying
This commit is contained in:
@@ -70,8 +70,8 @@ export default defineConfig({
|
||||
return `<script type="application/json" id="${metadata}">\n${content}</script>`
|
||||
}
|
||||
|
||||
// Embed as Base64 URI
|
||||
if (['.png', '.gif'].find((ext) => filepath.endsWith(ext))) {
|
||||
// Embed as data URI
|
||||
if (['.png', '.jpg', '.jpeg', '.gif', '.webp', '.avif'].find((ext) => filepath.endsWith(ext))) {
|
||||
const content = readFileSync(join(ROOT, filepath), 'base64')
|
||||
return `data:${metadata};base64,${content}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user