From 05635aebddd207c16de64af3f87664ba9699ca82 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Mon, 4 Jul 2022 17:25:23 +0800 Subject: [PATCH] chore: update less src --- .antd-tools.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.antd-tools.config.js b/.antd-tools.config.js index 7a5bec3673..5a6966eb72 100644 --- a/.antd-tools.config.js +++ b/.antd-tools.config.js @@ -14,7 +14,7 @@ module.exports = { // We need compile additional content for antd user function finalizeCompile() { - if (fs.existsSync(path.join(__dirname, './lib'))) { + if (fs.existsSync(path.join(__dirname, './es'))) { // Build a entry less file to dist/antd.less const componentsPath = path.join(process.cwd(), 'components'); let componentsLessContent = ''; @@ -30,7 +30,7 @@ function finalizeCompile() { } }); fs.writeFileSync( - path.join(process.cwd(), 'lib', 'style', 'components.less'), + path.join(process.cwd(), 'es', 'style', 'components.less'), componentsLessContent, ); });