HFBA / node_modules /postcss-js /process-result.js
Chunte's picture
Chunte HF staff
Upload 1033 files
d8f0e51 verified
raw
history blame
No virus
300 Bytes
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)
}