Selectively remove PostCSS warnings from your logs.
JavaScript CSS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fixtures
lib
.babelrc
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
index.js
package.json
yarn.lock

README.md

postcss-warn-cleaner

Greenkeeper badge JavaScript Style Guide Build Status

Selectively remove PostCSS warnings from your logs. For example, you may choose to ignore autoprefixer warnings resulting from third-party vendor libraries.

Installation

$ npm install postcss-warn-cleaner

Options

{
  ignoreFiles: false
}

ignoreFiles

Set files from which to ignore warnings.

Accepted Values
  • Glob
  • {Array} of globs
Examples
// Example: Single glob
warnCleaner({
  ignoreFiles: '**/node_modules/**/*'
})

// Example: Array of globs
warnCleaner({
  ignoreFiles: [
    '**/node_modules/**/*',
    '**/bower_components/**/*'
  ]
})

Webpack Example

var warnCleaner = require('postcss-warn-cleaner')

module.exports = {
  module: {
    loaders: [
      { test: /\.css$/, loader: 'style!css!postcss' },
    }],
  },
  postcss: [
    warnCleaner({
      ignoreFiles: '**/node_modules/**/*'
    })
  ]
}