lib/logger.js
function logPostCSSWarnings(warnings) {
  (0, _forEach2.default)(warnings, ({ text, plugin, node: { source: { input: { file } } }, line, column }) => {
    log(formatErrorMarker('Warning'), ': ', ...formatLine(`${text}(${plugin})`, file, line, column));
  });
  log('PostCSS warnings: ', warnings.length);
}
function logPostCSSWarnings(warnings) {
  (0, _forEach2.default)(warnings, ({ text, plugin, node: { source: { input: { file } } }, line, column }) => {
    log(formatErrorMarker('Warning'), ': ', ...formatLine(`${text}(${plugin})`, file, line, column));
  });
  log('PostCSS warnings: ', warnings.length);
}
function logPostCSSWarnings ( warnings ) { ( 0 , _forEach2 . default ) ( warnings , ( { text , plugin , node : { source : { input : { file } } } , line , column } ) => { log ( formatErrorMarker ( 'Warning' ) , ': ' , ... formatLine ( ` ${ text } ${ plugin } ` , file , line , column ) ) ; } ) ; log ( 'PostCSS warnings: ' , warnings . length ) ; }
Prints PostCSS Warning objects out to the console.

@memberof module:logger
@function logPostCSSWarnings
@param {Array<PostCSSWarning>} warnings - warning objects
@example
import {logPostCSSWarnings} from 'webcompiler';
// or - import {logPostCSSWarnings} from 'webcompiler/lib/logger';
// or - var logPostCSSWarnings = require('webcompiler').logPostCSSWarnings;
// or - var logPostCSSWarnings = require('webcompiler/lib/logger').logPostCSSWarnings;
import postcss from 'postcss';

postcss(...).process(...).then(result => {
const warnings = result.warnings();

if (warnings.length) {
return logPostCSSWarnings(warnings);
}
...
});
Prints PostCSS Warning objects out to the console .