Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Fix the glob pattern of excludeNonCssFiles#34

Open
precondition wants to merge 2 commits intodaflh:masterfrom
precondition:patch-1
Open

Fix the glob pattern of excludeNonCssFiles#34
precondition wants to merge 2 commits intodaflh:masterfrom
precondition:patch-1

Conversation

@precondition
Copy link
Copy Markdown

@precondition precondition commented Feb 9, 2022

~/Coding/vredeburg/src/assets/css
 tree
.
├── custom-forms.css
├── main.css
├── nouislider.min.css
├── something.txt
└── testdir
    └── nested.css

1 directory, 5 files

~/Coding/vredeburg/src/assets/css
 node
Welcome to Node.js v16.6.1.
Type ".help" for more information.
> const fg = require("fast-glob")
undefined
> await fg("**", {"ignore": ['**/!(*.css)']})
[]
> await fg("**", {"ignore": ['!(**.css)']})
[
  'custom-forms.css',
  'main.css',
  'nouislider.min.css',
  'testdir/nested.css'
]
> 

As you can see, using '**/!(*.css)' excludes everything from the results.

@precondition
Copy link
Copy Markdown
Author

bump

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant