Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Aug 29, 2024
1 parent 32ae355 commit caf5a2b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
},
"type": "module",
"dependencies": {
"@sveltejs/enhanced-img": "^0.3.4",
"highlight.js": "^11.8.0"
}
}
2 changes: 0 additions & 2 deletions src/lib/components/Entry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
alt={title}
class="rounded-md object-cover h-[220px]"
src={previewImageUrl}
width="350"
height="100"
/>
</figure>
<header>
Expand Down
4 changes: 1 addition & 3 deletions src/routes/[[lang=lang]]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,10 @@
</div>
<div class="w-full md:flex justify-end">
<figure itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
<img
<enhanced:img
src={avatarUrl}
loading="lazy"
alt="Michael Liendo Avatar"
width="384"
height="384"
title="Michael Liendo profile picture at GitHub."
class="rounded-2xl w-full xl:w-96 h-96 object-cover"
/>
Expand Down
20 changes: 11 additions & 9 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import Icons from 'unplugin-icons/vite';
import { enhancedImages } from '@sveltejs/enhanced-img';

export default defineConfig({
define: {
__BUILD_DATE__: JSON.stringify(+new Date())
},
plugins: [
sveltekit(),
Icons({
compiler: 'svelte'
})
]
define: {
__BUILD_DATE__: JSON.stringify(+new Date()),
},
plugins: [
sveltekit(),
enhancedImages(),
Icons({
compiler: 'svelte',
}),
],
});

0 comments on commit caf5a2b

Please sign in to comment.