workshopclaudecode/vite.config.js
Frank Meeuwsen fb52af979a feat: Markdown editor voor Installatie pagina + content updates
Installatie pagina omgezet van hardcoded JSX naar Markdown-driven rendering.
Browser-based editor toegevoegd (alleen in dev mode) met split-pane layout,
sneltoetsen, toolbar en drag & drop afbeeldingen.

Nieuwe afbeeldingen voor Git en Python installatie-instructies.
Workshop op uitverkocht gezet.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 21:44:03 +02:00

14 lines
514 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { editorApiPlugin } from './vite-plugin-editor-api.js'
// https://vite.dev/config/
// base path alleen voor production build, lokaal blijft het op /
// editorApiPlugin alleen actief in dev mode voor de Markdown editor
export default defineConfig(({ command }) => ({
plugins: [
react(),
command === 'serve' ? editorApiPlugin() : null,
].filter(Boolean),
base: command === 'build' ? '/workshopclaudecode/' : '/',
}))