refactor: use AstroImageTools to optimize Markdown images

This commit is contained in:
Stefan Imhoff
2023-05-18 15:49:47 +02:00
parent 28f5190550
commit 5f66147900
8 changed files with 807 additions and 38 deletions

View File

@@ -2,6 +2,7 @@ import image from '@astrojs/image';
import mdx from '@astrojs/mdx';
import preact from '@astrojs/preact';
import tailwind from '@astrojs/tailwind';
import { astroImageTools } from 'astro-imagetools';
import { defineConfig } from 'astro/config';
@@ -11,6 +12,7 @@ export default defineConfig({
mdx(),
tailwind(),
preact(),
astroImageTools,
image({
serviceEntryPoint: '@astrojs/image/sharp',
}),