From 213b489c29d5a5d0fa9b699dafe5b92eea8622a9 Mon Sep 17 00:00:00 2001 From: sea <45450994+warmthsea@users.noreply.github.com> Date: Tue, 23 Jul 2024 18:45:44 +0800 Subject: [PATCH] chore(vscode): fix `unocss` highlighting on `windows` caused by node path diff (#17644) chore: fix unocss highlighting on windows caused by node path diff --- docs/unocss.config.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/unocss.config.ts b/docs/unocss.config.ts index 69a2f7c5fe..279b059a1d 100644 --- a/docs/unocss.config.ts +++ b/docs/unocss.config.ts @@ -2,11 +2,8 @@ import { defineConfig, presetAttributify, presetIcons, presetUno } from 'unocss' export default defineConfig({ presets: [presetUno(), presetAttributify(), presetIcons()], - include: [`${__dirname}/**/*`], - exclude: [ - `${__dirname}/node_modules/**/*`, - `${__dirname}/.vitepress/cache/**/*`, - ], + include: [`./**/*`], + exclude: [`./node_modules/**/*`, `./.vitepress/cache/**/*`], theme: { breakpoints: { sm: '640px',