fix(cli): should check style exists when gen component style entry

This commit is contained in:
陈嘉涵
2019-12-21 08:55:22 +08:00
parent e8304a01bf
commit fad44923fb
2 changed files with 9 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ function getStylePath(component: string) {
return join(SRC_DIR, `${component}/index.${CSS_LANG}`);
}
function checkStyleExists(component: string) {
export function checkStyleExists(component: string) {
return existsSync(getStylePath(component));
}