Skip to content

Commit

Permalink
use outputFile instead of direct writeFile
Browse files Browse the repository at this point in the history
This is an improvement we introduced earlier but forgot this part.
  • Loading branch information
RobinMalfait committed Jan 4, 2022
1 parent 41e32bd commit 7fae1ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ async function build() {

return Promise.all(
[
fs.promises.writeFile(output, result.css, () => true),
result.map && fs.writeFile(output + '.map', result.map.toString(), () => true),
outputFile(output, result.css),
result.map && outputFile(output + '.map', result.map.toString()),
].filter(Boolean)
)
})
Expand Down

0 comments on commit 7fae1ad

Please sign in to comment.