-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathastro.config.mts
36 lines (34 loc) · 1006 Bytes
/
astro.config.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite";
import preact from '@astrojs/preact';
import { remarkTranscriptPlugin } from "./src/remark-transcript-plugin/plugin";
import { remarkResponsiveImages } from './src/plugins/remark-responsive-images';
// https://astro.build/config
export default defineConfig({
publicDir: "public",
integrations: [preact()],
vite: {
plugins: [tailwindcss()],
},
markdown: {
remarkPlugins: [remarkTranscriptPlugin, remarkResponsiveImages],
},
experimental: {
responsiveImages: true,
},
image: {
// Default settings for images
experimentalLayout: 'responsive',
experimentalObjectFit: 'cover',
experimentalObjectPosition: 'center',
// Reasonable default widths for responsive images
service: {
entrypoint: 'astro/assets/services/sharp',
config: {
quality: 90,
formats: ['webp'],
widths: [640, 750, 828, 1080, 1200, 1920],
},
},
},
});