Function nya::ignore[][src]

pub fn ignore(list: Vec<String>) -> MiddlewareFunction

Included middleware that excludes files from processing based on glob patterns.

Example

let result = nya::run(vec![
    nya::ignore(vec!["**/*.txt".to_owned(), "node_modules/".to_owned()]),
], Some("fixtures/example"), None);
if let Ok(r) = result {
    println!("Success!");
}