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 path from 'path';
|
||||||
import { fileURLToPath } from 'url';
|
import { fileURLToPath } from 'url';
|
||||||
|
|
||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig, squooshImageService } from 'astro/config';
|
||||||
|
|
||||||
import sitemap from '@astrojs/sitemap';
|
import sitemap from '@astrojs/sitemap';
|
||||||
import tailwind from '@astrojs/tailwind';
|
import tailwind from '@astrojs/tailwind';
|
||||||
import mdx from '@astrojs/mdx';
|
import mdx from '@astrojs/mdx';
|
||||||
import partytown from '@astrojs/partytown';
|
import partytown from '@astrojs/partytown';
|
||||||
import compress from 'astro-compress';
|
|
||||||
import icon from 'astro-icon';
|
import icon from 'astro-icon';
|
||||||
import tasks from './src/utils/tasks';
|
import tasks from './src/utils/tasks';
|
||||||
|
|
||||||
@ -61,17 +60,12 @@ export default defineConfig({
|
|||||||
),
|
),
|
||||||
|
|
||||||
tasks(),
|
tasks(),
|
||||||
|
|
||||||
compress({
|
|
||||||
CSS: true,
|
|
||||||
HTML: false,
|
|
||||||
Image: false,
|
|
||||||
JavaScript: true,
|
|
||||||
SVG: true,
|
|
||||||
Logger: 1,
|
|
||||||
}),
|
|
||||||
],
|
],
|
||||||
|
|
||||||
|
image: {
|
||||||
|
service: squooshImageService(),
|
||||||
|
},
|
||||||
|
|
||||||
markdown: {
|
markdown: {
|
||||||
remarkPlugins: [readingTimeRemarkPlugin],
|
remarkPlugins: [readingTimeRemarkPlugin],
|
||||||
rehypePlugins: [responsiveTablesRehypePlugin],
|
rehypePlugins: [responsiveTablesRehypePlugin],
|
||||||
|
@ -35,7 +35,6 @@
|
|||||||
"@types/lodash.merge": "^4.6.9",
|
"@types/lodash.merge": "^4.6.9",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
||||||
"@typescript-eslint/parser": "^6.13.2",
|
"@typescript-eslint/parser": "^6.13.2",
|
||||||
"astro-compress": "^2.2.3",
|
|
||||||
"eslint": "^8.55.0",
|
"eslint": "^8.55.0",
|
||||||
"eslint-plugin-astro": "^0.30.0",
|
"eslint-plugin-astro": "^0.30.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.8.0",
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
||||||
|
Reference in New Issue
Block a user