Use sharp again (v0.33.1) using resolution prop in package.json

This commit is contained in:
prototypa
2023-12-23 14:54:56 -05:00
parent 4a26ab813f
commit bc773e136e
2 changed files with 16 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import tailwind from '@astrojs/tailwind';
import mdx from '@astrojs/mdx';
import partytown from '@astrojs/partytown';
import icon from 'astro-icon';
import compress from 'astro-compress';
import tasks from './src/utils/tasks';
import { readingTimeRemarkPlugin, responsiveTablesRehypePlugin } from './src/utils/frontmatter.mjs';
@ -60,6 +61,15 @@ export default defineConfig({
),
tasks(),
compress({
CSS: true,
HTML: false,
Image: false,
JavaScript: true,
SVG: true,
Logger: 1,
}),
],
image: {