From 6d0d7aa36cb05f5cfef9795afe78dc130e54442d Mon Sep 17 00:00:00 2001 From: Eiinu Date: Sat, 7 Oct 2023 16:28:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20=E4=BF=AE=E5=A4=8D=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=97=B6=E4=B8=BB=E9=A2=98=E5=8C=85=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E9=97=AE=E9=A2=98=20(#2589)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/generate-themes.cjs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/generate-themes.cjs b/scripts/generate-themes.cjs index 6984c8c98c..b2abcfcedb 100644 --- a/scripts/generate-themes.cjs +++ b/scripts/generate-themes.cjs @@ -10,17 +10,15 @@ if (!target) { config.nav.map((item) => { item.packages.forEach((element) => { let folderName = element.name.toLowerCase(); + if (element.exclude != true) { + sassFileStr += `@import '../../packages/${folderName}/index.scss';\n`; + } tasks.push( fs .copy( path.resolve(__dirname, `../src/packages/__VUE/${folderName}/index.scss`), path.resolve(__dirname, `../dist/packages/${folderName}/index.scss`) ) - .then((success) => { - if (element.exclude != true) { - sassFileStr += `@import '../../packages/${folderName}/index.scss';\n`; - } - }) .catch((error) => {}) ); });