fix(cli): resolve npm mobules when compile less

This commit is contained in:
陈嘉涵
2019-12-16 16:20:17 +08:00
parent 8641b8b256
commit b3993dd653
7 changed files with 24 additions and 19 deletions
@@ -1,6 +1,6 @@
import { renderSync as renderSass } from 'sass';
import { renderSync } from 'sass';
export async function compileSass(filePath: string) {
const { css } = renderSass({ file: filePath });
const { css } = renderSync({ file: filePath });
return css;
}