-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.mts
34 lines (33 loc) · 951 Bytes
/
vite.config.mts
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
import {
vitePlugin as remix,
cloudflareDevProxyVitePlugin as remixCloudflareDevProxy,
} from "@remix-run/dev";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import svgr from "vite-plugin-svgr";
import mdx from "@mdx-js/rollup";
import rehypeHighlight from "rehype-highlight";
import remarkFrontmatter from "remark-frontmatter";
import remarkMdxFrontmatter from "remark-mdx-frontmatter";
import remarkGfm from "remark-gfm";
import { openGraphImage } from "remix-og-image/plugin";
export default defineConfig({
plugins: [
{
enforce: "pre",
...mdx({
rehypePlugins: [rehypeHighlight],
remarkPlugins: [remarkFrontmatter, remarkMdxFrontmatter, remarkGfm],
}),
},
remixCloudflareDevProxy(),
remix(),
tsconfigPaths(),
svgr(),
openGraphImage({
elementSelector: "#og-image",
outputDirectory: "./og",
format: "jpeg",
}),
],
});