Skip to content

Commit 9ab9a2f

Browse files
stefanfiskRyanZim
authored andcommitted
Only log warnings (#244)
Currently messages are only logged if there are warnings, but if there are then all messages are logged.
1 parent 54cdf3a commit 9ab9a2f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

index.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,13 @@ 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(
236+
reporter(
237+
Object.assign({}, result, {
238+
messages: result.warnings()
239+
})
240+
)
241+
)
238242

239243
return result
240244
})

0 commit comments

Comments
 (0)