-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
39 lines (37 loc) · 1.08 KB
/
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
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import icon from "astro-icon";
import mdx from '@astrojs/mdx';
import sitemap from "@astrojs/sitemap";
import { site } from './src/constants/site';
// https://astro.build/config
export default defineConfig({
site,
integrations: [mdx(), tailwind(), react(), icon({
svgoOptions: {
multipass: true,
plugins: ['preset-default',
// Avoid collisions with ids in other SVGs,
// which was causing incorrect gradient directions
// https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
//
// Previously, this was a problem where unique ids
// could not be generated since svgo@3
// https://github.com/svg/svgo/issues/674
// https://github.com/svg/svgo/issues/1746
'cleanupIds', {
name: 'prefixIds',
params: {
prefix() {
svgCount++;
return `svgid-${svgCount}`;
}
}
}]
},
include: {
tabler: ['*']
}
}), sitemap()]
});