rDrama/node_modules/postcss-js/process-result.js

12 lines
301 B
JavaScript
Raw Normal View History

2021-12-13 22:28:32 +00:00
let objectify = require('./objectifier')
module.exports = function processResult (result) {
if (console && console.warn) {
result.warnings().forEach(warn => {
let source = warn.plugin || 'PostCSS'
console.warn(source + ': ' + warn.text)
})
}
return objectify(result.root)
}