2026-01-29 14:03:36 +00:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import react from '@vitejs/plugin-react'
|
2026-03-29 19:44:03 +00:00
|
|
|
import { editorApiPlugin } from './vite-plugin-editor-api.js'
|
2026-01-29 14:03:36 +00:00
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
2026-03-29 19:44:03 +00:00
|
|
|
// editorApiPlugin alleen actief in dev mode voor de Markdown editor
|
2026-02-10 14:16:49 +00:00
|
|
|
export default defineConfig(({ command }) => ({
|
2026-03-29 19:44:03 +00:00
|
|
|
plugins: [
|
|
|
|
|
react(),
|
|
|
|
|
command === 'serve' ? editorApiPlugin() : null,
|
|
|
|
|
].filter(Boolean),
|
2026-04-17 05:54:37 +00:00
|
|
|
base: '/',
|
2026-02-10 14:16:49 +00:00
|
|
|
}))
|