mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
feat(cli): ignore files with min suffix
This commit is contained in:
parent
99dbf8e946
commit
7caaa04903
1 changed files with 4 additions and 0 deletions
|
|
@ -34,6 +34,10 @@ impl Walk {
|
|||
if !file_type.is_file() {
|
||||
return false;
|
||||
}
|
||||
let Some(file_name) = dir_entry.path().file_name() else { return false };
|
||||
if [".min.", "-min.", "_min."].iter().any(|e| file_name.to_string_lossy().contains(e)) {
|
||||
return false;
|
||||
}
|
||||
let Some(extension) = dir_entry.path().extension() else { return false };
|
||||
VALID_EXTENSIONS.contains(&extension.to_string_lossy().as_ref())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue