-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
44 lines (42 loc) · 1.04 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
40
41
42
43
44
// @ts-check
import { defineConfig } from "astro/config"
import { resolve } from "node:path"
import mdx from "@astrojs/mdx"
import rehypeKatex from "rehype-katex"
import remarkMath from "remark-math"
import svelte from "@astrojs/svelte"
import glslify from "vite-plugin-glslify"
const __dirname = new URL(".", import.meta.url).pathname
// https://astro.build/config
export default defineConfig(
/** @type {import('astro').AstroUserConfig} */
{
vite: {
resolve: {
alias: {
"@": resolve(__dirname, "src")
}
},
plugins: [
glslify({
include: ["**/*.glsl", "**/*.vs", "**/*.fs", "**/*.vert", "**/*.frag"]
})
]
},
integrations: [
// @ts-ignore
mdx({
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex]
}),
svelte()
],
site: "https://tetracalibers.github.io",
base: "/webgl-practice-ground",
markdown: {
syntaxHighlight: "prism",
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex]
}
}
)