feat: enhance image handling and analytics configuration

- Add @unpic/astro for improved image optimization
- Configure image service with blurhash placeholder
- Update analytics script to support custom JavaScript URLs
- Modify preload configuration for more flexible analytics integration
- Remove deprecated rehype image transformation plugin
This commit is contained in:
radishzzz 2025-02-21 01:25:38 +00:00
parent 6bcd51765d
commit ad9fabe937
8 changed files with 218 additions and 146 deletions

View file

@ -20,10 +20,11 @@
"@astrojs/rss": "^4.0.11",
"@astrojs/sitemap": "^3.2.1",
"@rehype-pretty/transformers": "^0.13.2",
"@unpic/astro": "^1.0.0",
"astro": "^5.3.0",
"astro-compress": "^2.3.6",
"astro-robots-txt": "^1.0.0",
"hastscript": "^9.0.0",
"hastscript": "^9.0.1",
"markdown-it": "^14.1.0",
"overlayscrollbars": "^2.11.0",
"photoswipe": "^5.4.4",
@ -41,7 +42,7 @@
"sharp": "^0.33.5",
"typescript": "~5.7.3",
"unist-util-visit": "^5.0.0",
"vite": "^6.1.0"
"vite": "^6.1.1"
},
"devDependencies": {
"@antfu/eslint-config": "^4.3.0",