v5/app.config.ts

36 lines
897 B
TypeScript
Raw Permalink Normal View History

2025-01-23 11:16:33 -05:00
import { defineConfig } from "@solidjs/start/config";
2025-01-29 17:35:25 -05:00
import tailwindcss from "@tailwindcss/vite";
2025-01-23 11:16:33 -05:00
//@ts-expect-error
import pkg from "@vinxi/plugin-mdx";
import { blogPostsPlugin } from "./build-helpers/blogPostsPlugin";
import remarkFrontmatter from "remark-frontmatter";
import rehypeMdxCodeProps from "rehype-mdx-code-props";
import { mdxPrism } from "./build-helpers/mdxPrism";
import remarkToc from "remark-toc";
const { default: mdx } = pkg;
export default defineConfig({
extensions: ["mdx", "md"],
vite: {
plugins: [
2025-01-29 17:35:25 -05:00
tailwindcss(),
2025-01-23 11:16:33 -05:00
mdx.withImports({})({
remarkPlugins: [remarkFrontmatter, remarkToc],
rehypePlugins: [rehypeMdxCodeProps, mdxPrism],
jsx: true,
jsxImportSource: "solid-js",
providerImportSource: "solid-mdx",
}),
blogPostsPlugin(),
],
build: {
2025-01-29 17:35:25 -05:00
target: "esnext",
2025-01-23 11:16:33 -05:00
},
},
server: {
prerender: {
crawlLinks: true,
},
},
});