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],

View File

@ -35,7 +35,6 @@
"@types/lodash.merge": "^4.6.9",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"astro-compress": "^2.2.3",
"eslint": "^8.55.0",
"eslint-plugin-astro": "^0.30.0",
"eslint-plugin-jsx-a11y": "^6.8.0",