chore(cli): split compilers

This commit is contained in:
陈嘉涵
2019-11-29 13:20:43 +08:00
parent e2c9628316
commit 51d2512311
9 changed files with 90 additions and 74 deletions
@@ -0,0 +1,6 @@
import { renderSync as renderSass } from 'sass';
export async function compileSass(filePath: string) {
const { css } = renderSass({ file: filePath });
return css;
}