Temporarily remove astro-compress and use Squoosh due to sharp errors

This commit is contained in:
PrototypeArea
2023-12-22 11:10:37 -05:00
parent 59d42b8511
commit a2f9828b66
2 changed files with 5 additions and 12 deletions

View File

@ -1,13 +1,12 @@
import path from 'path';
import { fileURLToPath } from 'url';
import { defineConfig } from 'astro/config';
import { defineConfig, squooshImageService } from 'astro/config';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown';
import compress from 'astro-compress';
import icon from 'astro-icon';
import tasks from './src/utils/tasks';
@ -61,17 +60,12 @@ export default defineConfig({
),
tasks(),
compress({
CSS: true,
HTML: false,
Image: false,
JavaScript: true,
SVG: true,
Logger: 1,
}),
],
image: {
service: squooshImageService(),
},
markdown: {
remarkPlugins: [readingTimeRemarkPlugin],
rehypePlugins: [responsiveTablesRehypePlugin],