Selectively remove PostCSS warnings from your logs. For example, you may choose to ignore autoprefixer warnings resulting from third-party vendor libraries.
$ npm install postcss-warn-cleaner
{
ignoreFiles: false
}
Set files from which to ignore warnings.
- Glob
{Array}
of globs
// Example: Single glob
warnCleaner({
ignoreFiles: '**/node_modules/**/*'
})
// Example: Array of globs
warnCleaner({
ignoreFiles: [
'**/node_modules/**/*',
'**/bower_components/**/*'
]
})
var warnCleaner = require('postcss-warn-cleaner')
module.exports = {
module: {
loaders: [
{ test: /\.css$/, loader: 'style!css!postcss' },
}],
},
postcss: [
warnCleaner({
ignoreFiles: '**/node_modules/**/*'
})
]
}