Skip to content

Commit bcaee37

Browse files
authored
Only log warnings
Currently messages are only logged if there are warnings, but if there are then all messages are logged.
1 parent 46b7c10 commit bcaee37

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,10 @@ function css(css, file) {
232232
chalk`{green Finished {bold ${relativePath}} in {bold ${prettyTime}}}`
233233
)
234234

235-
if (result.warnings().length) {
236-
console.warn(reporter(result))
237-
}
235+
console.warn(reporter({
236+
...result,
237+
messages: result.warnings(),
238+
}));
238239

239240
return result
240241
})

0 commit comments

Comments
 (0)