summaryrefslogblamecommitdiff
path: root/node_modules/postcss-js/process-result.js
blob: 215a95cc67a81b3f89ef71582a056280f2bfcf17 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










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