From df63f55f0423c03bbc059e3c39ffca0c2339b08c Mon Sep 17 00:00:00 2001 From: al1cE <180387319+Alice39s@users.noreply.github.com> Date: Sun, 6 Oct 2024 22:23:34 +0800 Subject: [PATCH] docs: fix build issue in vite config Updated Vite configuration to properly handle .vue files from @nolebase/ui. Resolves "Unknown file extension '.vue'" error during Vitepress build process. --- .../vitepress-plugin-enhanced-readabilities/index.md | 4 +++- .../vitepress-plugin-enhanced-readabilities/index.md | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/pages/en/integrations/vitepress-plugin-enhanced-readabilities/index.md b/docs/pages/en/integrations/vitepress-plugin-enhanced-readabilities/index.md index 274a26a7..12a9b1ba 100644 --- a/docs/pages/en/integrations/vitepress-plugin-enhanced-readabilities/index.md +++ b/docs/pages/en/integrations/vitepress-plugin-enhanced-readabilities/index.md @@ -119,13 +119,15 @@ export default defineConfig(() => { optimizeDeps: { exclude: [ // [!code ++] '@nolebase/vitepress-plugin-enhanced-readabilities/client', // [!code ++] - 'vitepress' // [!code ++] + 'vitepress', // [!code ++] + '@nolebase/ui', // [!code ++] ], // [!code ++] }, ssr: { // [!code ++] noExternal: [ // [!code ++] // If there are other packages that need to be processed by Vite, you can add them here. // [!code hl] '@nolebase/vitepress-plugin-enhanced-readabilities', // [!code ++] + '@nolebase/ui', // [!code ++] ], // [!code ++] }, // [!code ++] plugins: [ diff --git a/docs/pages/zh-CN/integrations/vitepress-plugin-enhanced-readabilities/index.md b/docs/pages/zh-CN/integrations/vitepress-plugin-enhanced-readabilities/index.md index 46f96fc5..71c0b628 100644 --- a/docs/pages/zh-CN/integrations/vitepress-plugin-enhanced-readabilities/index.md +++ b/docs/pages/zh-CN/integrations/vitepress-plugin-enhanced-readabilities/index.md @@ -87,12 +87,15 @@ export default defineConfig({ optimizeDeps: { exclude: [ // [!code ++] '@nolebase/vitepress-plugin-enhanced-readabilities/client', // [!code ++] + 'vitepress', // [!code ++] + '@nolebase/ui', // [!code ++] ], // [!code ++] }, ssr: { // [!code ++] noExternal: [ // [!code ++] // 如果还有别的依赖需要添加的话,并排填写和配置到这里即可 // [!code hl] '@nolebase/vitepress-plugin-enhanced-readabilities', // [!code ++] + '@nolebase/ui', // [!code ++] ], // [!code ++] }, // [!code ++] }, // [!code ++]