initial commit
This commit is contained in:
33
app.config.ts
Normal file
33
app.config.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { defineConfig } from "@solidjs/start/config";
|
||||
//@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: [
|
||||
mdx.withImports({})({
|
||||
remarkPlugins: [remarkFrontmatter, remarkToc],
|
||||
rehypePlugins: [rehypeMdxCodeProps, mdxPrism],
|
||||
jsx: true,
|
||||
jsxImportSource: "solid-js",
|
||||
providerImportSource: "solid-mdx",
|
||||
}),
|
||||
blogPostsPlugin(),
|
||||
],
|
||||
build: {
|
||||
minify: false,
|
||||
},
|
||||
},
|
||||
server: {
|
||||
prerender: {
|
||||
crawlLinks: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user