-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
29 lines (27 loc) · 915 Bytes
/
astro.config.mjs
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
import { defineConfig } from 'astro/config'
import tailwind from '@astrojs/tailwind'
import rehypePlugins from './lib/rehype/plugins.ts'
import remarkPlugins from './lib/remark/plugins.ts'
// see: https://astro.build/config
export default defineConfig({
compressHTML: true,
integrations: [
tailwind({
// Disable injecting a basic `base.css` import on every page so I can define and import my own
applyBaseStyles: false,
}),
],
markdown: {
remarkPlugins,
rehypePlugins,
syntaxHighlight: false, // use rehype-pretty-code instead of built-in shiki/prism
},
scopedStyleStrategy: 'class',
site: 'https://michaeluloth.com',
trailingSlash: 'always',
vite: {
// solves "Error: No loader is configured for ".node" files: node_modules/fsevents/fsevents.node"
// see: https://stackoverflow.com/a/75655669/8802485
optimizeDeps: { exclude: ['fsevents'] },
},
})