Browse Source

chore:backup

DaiQiangReal 3 years ago
parent
commit
bf03ad5a22
1 changed files with 10 additions and 1 deletions
  1. 10 1
      packages/semi-scss-to-css-var/src/index.ts

+ 10 - 1
packages/semi-scss-to-css-var/src/index.ts

@@ -43,7 +43,16 @@ const getAllScssFilesInPath = (filePath: string) => {
             scssFilePaths.push(...getAllScssFilesInPath(pathOfCurrentFile));
         }
     });
-    return scssFilePaths;
+    const ignoreFileList =['components/grid'];
+
+    return scssFilePaths.filter(filepath =>{
+        for(const rule of ignoreFileList){
+            if(filepath.includes(rule)){
+                return false;
+            }
+        }
+        return true;
+    });
 };