-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
41 lines (33 loc) · 952 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
30
31
32
33
34
35
36
37
38
39
40
41
// @ts-check
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import path from 'path';
import tailwindcss from 'tailwindcss';
import tailwindcssNesting from 'tailwindcss/nesting';
import autoprefixer from 'autoprefixer';
import mdx from '@astrojs/mdx';
import icon from 'astro-icon';
import sitemap from '@astrojs/sitemap';
import critters from 'astro-critters';
import remarkCustomHeaderId from 'remark-custom-header-id';
// https://astro.build/config
export default defineConfig({
site: 'https://hackerspace.sg',
integrations: [react(), mdx(), icon(), sitemap(), critters({})],
markdown: {
remarkPlugins: [remarkCustomHeaderId],
},
vite: {
css: {
postcss: {
plugins: [
tailwindcssNesting(),
tailwindcss({
config: path.resolve(import.meta.dirname, 'tailwind.config.ts'),
}),
autoprefixer(),
],
},
},
},
});