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

Fix the glob pattern of excludeNonCssFiles #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

precondition
Copy link

@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
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