www_hero/node_modules/postcss-js/process-result.js
sasha-astiadi 324d5960af hero_web
2024-05-03 06:39:20 +02:00

12 lines
300 B
JavaScript

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)
}