From 76d85cc8af066273b8a718b4f796b26b8d5effa1 Mon Sep 17 00:00:00 2001 From: XiaoGaoYang Date: Thu, 6 Dec 2018 17:40:39 +0800 Subject: [PATCH] [bug fix] buildDocsEntry in windows (#2229) --- build/build-entry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build-entry.js b/build/build-entry.js index 7c6d0a507..b836f1661 100644 --- a/build/build-entry.js +++ b/build/build-entry.js @@ -79,7 +79,7 @@ function buildDocsEntry() { ]) .map(fullPath => { const name = getName(fullPath); - return `'${name}': () => import('${path.relative(join('docs/src'), fullPath)}')`; + return `'${name}': () => import('${path.relative(join('docs/src'), fullPath).replace(/\\/g, '/')}')`; }); const content = `${tips}