[bug fix] buildDocsEntry in windows (#2229)

This commit is contained in:
XiaoGaoYang 2018-12-06 17:40:39 +08:00 committed by neverland
parent 66bd7eb7c5
commit 76d85cc8af

View File

@ -79,7 +79,7 @@ function buildDocsEntry() {
]) ])
.map(fullPath => { .map(fullPath => {
const name = getName(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} const content = `${tips}