speice.io/vite.config.ts

19 lines
471 B
TypeScript
Raw Normal View History

2023-04-15 12:56:22 -04:00
import { defineConfig } from "vite";
import blog from "@bspeice/vite-plugin-blog";
import mdx from "@mdx-js/rollup";
import react from "@vitejs/plugin-react-swc";
2023-04-15 12:55:22 -04:00
2023-04-16 20:10:40 -04:00
import remarkPrism from "remark-prism";
2023-04-15 12:55:22 -04:00
export default defineConfig({
plugins: [
blog({
2023-04-16 20:10:40 -04:00
"/": "/pages/index.tsx",
"/about": "/pages/about.mdx",
"/2019/02/the-whole-world": "/posts/2019/02/the-whole-world.mdx",
2023-04-15 12:55:22 -04:00
}),
2023-04-16 20:10:40 -04:00
mdx({ remarkPlugins: [remarkPrism] }),
2023-04-15 12:56:22 -04:00
react(),
2023-04-15 12:55:22 -04:00
],
2023-04-15 12:56:22 -04:00
});