-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
46 lines (45 loc) · 972 Bytes
/
Copy pathastro.config.mjs
File metadata and controls
46 lines (45 loc) · 972 Bytes
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
42
43
44
45
46
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import tailwindcss from "@tailwindcss/vite";
import compress from "astro-compress";
import mdx from "@astrojs/mdx";
// https://astro.build/config
export default defineConfig({
integrations: [
sitemap({
filter: (page) =>
!["/rss.xml", "/robots.txt", "/search-index.json"].some((path) =>
page.endsWith(path)
),
}),
mdx(),
compress({
CSS: true,
HTML: {
"html-minifier-terser": {
removeAttributeQuotes: true,
},
},
Image: true,
JavaScript: true,
SVG: true,
}),
],
markdown: {
shikiConfig: {
themes: {
light: "github-light",
dark: "dark-plus",
},
},
},
site: "https://tinybones.pages.dev",
output: "static",
prefetch: {
prefetchAll: true,
defaultStrategy: "hover",
},
vite: {
plugins: [tailwindcss()],
},
});