-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvite.config.ts
42 lines (41 loc) · 1.07 KB
/
vite.config.ts
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
import { FrontmatterSchema } from "./src/lib/schema";
import { adapter } from "@domcojs/vercel";
import { md } from "@robino/md";
import langAstro from "@shikijs/langs/astro";
import langBash from "@shikijs/langs/bash";
import langCss from "@shikijs/langs/css";
import langDiff from "@shikijs/langs/diff";
import langHtml from "@shikijs/langs/html";
import langJson from "@shikijs/langs/json";
import langMd from "@shikijs/langs/md";
import langSql from "@shikijs/langs/sql";
import langSvelte from "@shikijs/langs/svelte";
import langTsx from "@shikijs/langs/tsx";
import tailwindcss from "@tailwindcss/vite";
import { domco } from "domco";
import { defineConfig } from "vite";
export default defineConfig({
build: { minify: true },
plugins: [
domco({ adapter: adapter() }),
tailwindcss(),
md({
FrontmatterSchema,
highlighter: {
langs: [
langCss,
langHtml,
langTsx,
langSvelte,
langDiff,
langBash,
langJson,
langSql,
langMd,
langAstro,
],
langAlias: { js: "tsx", ts: "tsx", jsx: "tsx", mdx: "md" },
},
}),
],
});