Skip to content

Commit 0670bbd

Browse files
committed
Fix issue with scanning subfolders if ignoreDirectories is not used
1 parent 73dedb1 commit 0670bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/pluginCore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const findHtmlFiles = async function (fileAndDirPath, directoryFilter) {
5656
if (await isDirectory(fileAndDirPath)) {
5757
const fileInfos = await readdirp.promise(fileAndDirPath, {
5858
fileFilter: '*.html',
59-
directoryFilter
59+
directoryFilter: !!directoryFilter.length ? directoryFilter : '*'
6060
})
6161
return fileInfos.map(({ fullPath }) => fullPath)
6262
}

0 commit comments

Comments
 (0)