*.css
or
**/*.css
), will return an array of absolute paths to matching
files on disk
await glob(pattern[, options])
// All css files in ./src
const files = await glob('./src/**/*.css');
// All .css files in ./src, except those
// starting with an underscore
const files = await glob(['./src/**/*.css', '!./src/**/_*.css']);
Set options.context
to define the root folder to use for globs.
Set options.hiddenFiles
to false
to not match hidden files.
Set options.directories
to false
to match only files, and not directories.
Set options.absolutePaths
to false
to return relative paths instead of absolute ones.