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}