2023-07-05 11:02:15 +02:00
|
|
|
var objectify = require('./objectifier')
|
2023-07-01 10:42:40 +02:00
|
|
|
|
2023-07-05 11:02:15 +02:00
|
|
|
module.exports = function (result) {
|
2023-07-01 10:42:40 +02:00
|
|
|
if (console && console.warn) {
|
2023-07-05 11:02:15 +02:00
|
|
|
result.warnings().forEach(function (warn) {
|
|
|
|
|
var source = warn.plugin || 'PostCSS'
|
2023-07-01 10:42:40 +02:00
|
|
|
console.warn(source + ': ' + warn.text)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
return objectify(result.root)
|
|
|
|
|
}
|