- Configure content collections to use image() helper for type-safe image references - Replace all <img> tags with <Image> component from astro:assets - Migrate images from /public to /src/assets for automatic optimization - Update blog posts to use relative paths in frontmatter (../../assets/photos/) - Remove unused images and duplicates from /public folder - Update Footer component to use optimized SVG icons - Clean up manifest.json to use favicon.ico instead of deleted photos Performance improvements: - remote.jpg: 1.8MB → 128KB (93% reduction) - me.png: 71KB → 12KB (83% reduction) - Automatic WebP conversion - Tree-shaking: only used images are optimized /public folder reduced from 2.3MB to 32KB (only essential files) Build output: 2.2MB with fully optimized images ready for S3 deployment
33 lines
796 B
JSON
33 lines
796 B
JSON
{
|
|
"name": "lorenzoiovino.com",
|
|
"type": "module",
|
|
"version": "1.0.0",
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"start": "astro dev",
|
|
"build": "astro check && astro build",
|
|
"preview": "astro preview",
|
|
"astro": "astro",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"lint": "biome format src/",
|
|
"lint:fix": "biome format --write src/",
|
|
"type-check": "astro check"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/mdx": "^4.3.13",
|
|
"@astrojs/tailwind": "^6.0.2",
|
|
"astro": "^5.16.7",
|
|
"sharp": "^0.34.5",
|
|
"tailwindcss": "^3.4.0"
|
|
},
|
|
"devDependencies": {
|
|
"@astrojs/check": "^0.9.6",
|
|
"@astrojs/rss": "^4.0.14",
|
|
"@astrojs/sitemap": "^3.6.1",
|
|
"@biomejs/biome": "^2.3.11",
|
|
"prettier": "^3.7.4",
|
|
"prettier-plugin-astro": "^0.14.1",
|
|
"typescript": "^5.3.0"
|
|
}
|
|
}
|