https://github.com/dcalhoun/postcss-warn-cleaner
Selectively remove PostCSS warnings from your logs.
https://github.com/dcalhoun/postcss-warn-cleaner
ignore-warnings postcss vendor
Last synced: about 1 year ago
JSON representation
Selectively remove PostCSS warnings from your logs.
- Host: GitHub
- URL: https://github.com/dcalhoun/postcss-warn-cleaner
- Owner: dcalhoun
- License: mit
- Created: 2016-07-14T03:11:33.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2022-02-22T21:38:29.000Z (over 4 years ago)
- Last Synced: 2025-04-12T08:49:19.447Z (about 1 year ago)
- Topics: ignore-warnings, postcss, vendor
- Language: JavaScript
- Homepage:
- Size: 157 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# postcss-warn-cleaner
[](https://greenkeeper.io/)
[](https://standardjs.com)
[](https://travis-ci.org/dcalhoun/postcss-warn-cleaner)
Selectively remove PostCSS warnings from your logs. For example, you may choose to ignore autoprefixer warnings resulting from third-party vendor libraries.
### Installation
```bash
$ npm install postcss-warn-cleaner
```
### Options
```javascript
{
ignoreFiles: false
}
```
#### `ignoreFiles`
Set files from which to ignore warnings.
###### Accepted Values
- Glob
- `{Array}` of globs
###### Examples
```javascript
// Example: Single glob
warnCleaner({
ignoreFiles: '**/node_modules/**/*'
})
// Example: Array of globs
warnCleaner({
ignoreFiles: [
'**/node_modules/**/*',
'**/bower_components/**/*'
]
})
```
### Webpack Example
```javascript
var warnCleaner = require('postcss-warn-cleaner')
module.exports = {
module: {
loaders: [
{ test: /\.css$/, loader: 'style!css!postcss' },
}],
},
postcss: [
warnCleaner({
ignoreFiles: '**/node_modules/**/*'
})
]
}
```