Skip to content

Commit

Permalink
Only log warnings
Browse files Browse the repository at this point in the history
Currently messages are only logged if there are warnings, but if there are then all messages are logged.
  • Loading branch information
stefanfisk committed Oct 21, 2018
1 parent 46b7c10 commit af81c55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ function css(css, file) {
chalk`{green Finished {bold ${relativePath}} in {bold ${prettyTime}}}`
)

if (result.warnings().length) {
console.warn(reporter(result))
}
console.warn(reporter(Object.assign({}, result, {
messages: result.warnings(),
})));

return result
})
Expand Down

0 comments on commit af81c55

Please sign in to comment.