diff --git a/.antd-tools.config.js b/.antd-tools.config.js index 97d5728c32..b721859d39 100644 --- a/.antd-tools.config.js +++ b/.antd-tools.config.js @@ -22,7 +22,7 @@ function finalizeCompile() { fs.readdir(componentsPath, (err, files) => { files.forEach(file => { if (fs.existsSync(path.join(componentsPath, file, 'style', 'index.less'))) { - componentsLessContent += `@import "../${path.join(file, 'style', 'index.less')}";\n`; + componentsLessContent += `@import "../${path.posix.join(file, 'style', 'index.less')}";\n`; } }); fs.writeFileSync(