From d6d5581eefa428df2e16660ea177ed195eb438e9 Mon Sep 17 00:00:00 2001 From: yinhui1129754 <375361172@qq.com> Date: Wed, 5 Feb 2020 15:32:15 +0800 Subject: [PATCH] fix(vant-cli): fix the bug of getting MD file in windows (#5626) --- packages/vant-cli/src/compiler/gen-site-desktop-shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant-cli/src/compiler/gen-site-desktop-shared.ts b/packages/vant-cli/src/compiler/gen-site-desktop-shared.ts index 3f20a6cff..0ce42825a 100644 --- a/packages/vant-cli/src/compiler/gen-site-desktop-shared.ts +++ b/packages/vant-cli/src/compiler/gen-site-desktop-shared.ts @@ -65,7 +65,7 @@ function resolveDocuments(components: string[]): DocumentItem[] { }); } - const staticDocs = glob.sync(join(DOCS_DIR, '**/*.md')).map(path => { + const staticDocs = glob.sync(normalizePath(join(DOCS_DIR, '**/*.md'))).map(path => { const pairs = parse(path).name.split('.'); return { name: formatName(pairs[0], pairs[1] || defaultLang),