Skip to content

Commit

Permalink
Document the ignoreFile feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereOverfl0w committed Nov 29, 2015
1 parent 6ac7a6c commit 82deb0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ var doiuse = require('doiuse');
postcss(doiuse({
browsers:['ie >= 6', '> 1%'],
ignore: ['rem'], // an optional array of features to ignore
ignoreFiles: ['**/normalize.css'], // an optional array of file globs to match against original source file path, to ignore
onFeatureUsage: function(usageInfo) {
console.log(usageInfo.message);
}
Expand All @@ -78,6 +79,7 @@ gulp.src(src, { cwd: process.cwd() })
'> 1%'
],
ignore: ['rem'], // an optional array of features to ignore
ignoreFiles: ['**/normalize.css'], // an optional array of file globs to match against original source file path, to ignore
onFeatureUsage: function (usageInfo) {
console.log(usageInfo.message)
}
Expand Down Expand Up @@ -117,6 +119,7 @@ Yields `UsageInfo` objects as described below.
{
browsers: ['ie >= 8', '> 1%'] // an autoprefixer-like array of browsers.
ignore: ['rem'], // an optional array of features to ignore
ignoreFiles: ['**/normalize.css'], // an optional array of file globs to match against original source file path, to ignore
onFeatureUsage: function(usageInfo) { } // a callback for usages of features not supported by the selected browsers
}
```
Expand Down

0 comments on commit 82deb0e

Please sign in to comment.