From 7f30ea7f9d851c8fde2b88afe168583b7d51c6ec Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Tue, 12 Nov 2024 13:23:48 +0100 Subject: [PATCH] docs: inline Vite config --- docs/.vitepress/config.ts | 5 +++++ docs/vite.config.ts | 18 ------------------ 2 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 docs/vite.config.ts diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 0250ca6..311e359 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,4 +1,5 @@ import type { DefaultTheme } from 'vitepress' +import UnoCSS from 'unocss/vite' import { defineConfig } from 'vitepress' import { github, ogDescription, ogImage, ogTitle, ogUrl, releases, version } from './meta' @@ -28,6 +29,10 @@ export default defineConfig({ appearance: 'dark', + vite: { + plugins: [UnoCSS()], + }, + themeConfig: { logo: '/logo.svg', diff --git a/docs/vite.config.ts b/docs/vite.config.ts deleted file mode 100644 index a6f11a1..0000000 --- a/docs/vite.config.ts +++ /dev/null @@ -1,18 +0,0 @@ -import UnoCSS from 'unocss/vite' -import { defineConfig } from 'vite' - -export default defineConfig({ - optimizeDeps: { - exclude: [ - 'vitepress', - ], - }, - server: { - hmr: { - overlay: false, - }, - }, - plugins: [ - UnoCSS(), - ], -})