aboutsummaryrefslogtreecommitdiff
path: root/vite.config.ts
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-06-25 01:28:12 +0200
committerschererleander <leander@schererleander.de>2025-06-25 01:28:12 +0200
commit3a7cb097dfcf0672204fff2a3409a1817a87e5fa (patch)
tree494cb0323d973842c4ce903f526facef9c091e43 /vite.config.ts
parente6c8d4ea15ea77b08a2349ec24b11c95b634dba5 (diff)
swap gray-matter for vite-plugin-markdown
Diffstat (limited to 'vite.config.ts')
-rw-r--r--vite.config.ts25
1 files changed, 4 insertions, 21 deletions
diff --git a/vite.config.ts b/vite.config.ts
index 5282e0c..90ad9c0 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -2,8 +2,7 @@ import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import Sitemap from 'vite-plugin-sitemap';
-import { NodeGlobalsPolyfillPlugin } from "@esbuild-plugins/node-globals-polyfill";
-import { NodeModulesPolyfillPlugin } from "@esbuild-plugins/node-modules-polyfill";
+import { plugin as mdPlugin, Mode } from 'vite-plugin-markdown';
export default defineConfig({
plugins: [
@@ -11,24 +10,8 @@ export default defineConfig({
tailwindcss(),
Sitemap({
hostname: "https://schererleander.de",
- dynamicRoutes: [ "/", "/gear", "/projects", "/homelab", "/printing" ]
- })
+ dynamicRoutes: [ "/", "/gear", "/projects", "/homelab", "/blog" ]
+ }),
+ mdPlugin({mode: [Mode.REACT, Mode.MARKDOWN],}),
],
- resolve: {
- alias: {
- buffer: "buffer",
- process: "process/browser",
- },
- },
- optimizeDeps: {
- esbuildOptions: {
- plugins: [
- NodeGlobalsPolyfillPlugin({
- buffer: true,
- process: true,
- }),
- NodeModulesPolyfillPlugin(),
- ],
- },
- },
})