-
Notifications
You must be signed in to change notification settings - Fork 17
Fix HTML crawling #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. should we warn if the path doesnt exist at all? likely to be a user error.
You're right: fixed in cbb9597. |
plugin/pluginCore.js
Outdated
} | ||
|
||
if (!(await isFile(fileAndDirPath))) { | ||
build.failBuild(`Input "checkPaths" does not exist: ${fileAndDirPath}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait.. why fail build? should we just warn instead?
also i think the wording can be better.. maybe Warning: Folder ${fileAndDirPath} was provided in "checkPaths", but does not exist - it either indicates something went wrong with your build, or you can simply delete this folder from your "checkPaths" in netlify.toml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
v 0.0.9 |
Fixes #19.
HTML crawling fails when one of the paths passed as
checkPaths
does not exist.This PR also makes the crawling happen in parallel for all
checkPaths
(instead of serially) and replace custom crawling by thereaddirp
library.