Skip to content

Commit 0fba679

Browse files
committed
use outputFile instead of direct writeFile
This is an improvement we introduced earlier but forgot this part.
1 parent 058a925 commit 0fba679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ async function build() {
546546

547547
return Promise.all(
548548
[
549-
fs.promises.writeFile(output, result.css, () => true),
550-
result.map && fs.writeFile(output + '.map', result.map.toString(), () => true),
549+
outputFile(output, result.css),
550+
result.map && outputFile(output + '.map', result.map.toString()),
551551
].filter(Boolean)
552552
)
553553
})

0 commit comments

Comments
 (0)