feat(cli): minify css

This commit is contained in:
陈嘉涵
2019-12-12 09:56:44 +08:00
parent 5318f3bd3f
commit 24202028e5
4 changed files with 18 additions and 4 deletions
@@ -23,7 +23,7 @@ async function compileFile(filePath: string) {
}
export async function compileStyle(filePath: string) {
const content = await compileFile(filePath);
const css = await compileFile(filePath);
writeFileSync(replaceExt(filePath, '.css'), content);
writeFileSync(replaceExt(filePath, '.css'), css);
}