Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 21 days 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 (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-02-22T21:38:29.000Z (over 2 years ago)
- Last Synced: 2024-10-04T20:36:42.462Z (about 1 month ago)
- Topics: ignore-warnings, postcss, vendor
- Language: JavaScript
- Homepage:
- Size: 157 KB
- Stars: 5
- Watchers: 3
- 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
[![Greenkeeper badge](https://badges.greenkeeper.io/dcalhoun/postcss-warn-cleaner.svg)](https://greenkeeper.io/)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Build Status](https://travis-ci.org/dcalhoun/postcss-warn-cleaner.svg?branch=master)](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/**/*'
})
]
}
```