Temporarily remove astro-compress and use Squoosh due to sharp errors
This commit is contained in:
@ -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],
|
||||
|
Reference in New Issue
Block a user