Closed fivedoor closed 8 years ago
Thanks! I'll have a look this weekend.
The reason you don't get an error for the broken link http://www.deadlink-test.com
is that you have the onlySameDomain
option set to true
which means that links on domains other than that of the test page (localhost
in your scenario) should not be checked. Here's the documentation: https://github.com/DavidAnson/check-pages#onlysamedomain
Setting the option to false
allows check-pages
to check the link and it does report that it's broken, so I believe things are working correctly here. If you agree, I'll close the issue.
PS - While looking into this, I discovered and fixed an unrelated bug - so this was a good exercise! :)
Thanks very much David. Sorry to miss something so obvious. I think I must’ve burnt my brain cells out trying to troubleshoot the browserSync issue from the other post. If/when I get further feedback on that I will post an update.
Happy to close this issue. (Glad it had some use in terms of the bug fix.) Thanks for your help.
I am running the default ‘checkDev’ task with gulp on a basic html template. It picks up on some bad links e.g. that was an unresolved symbol:
Bad link (404): http://localhost:8080/_UNSUBLINK__ (17ms)
However some test dead links like http://www.deadlink-test.com were not picked up as inaccessible content in the console output which seemed odd.Hosting the basic test template html and the stripped down gulp file here: https://jsfiddle.net/hp4dkn7f/
Full test repository here: https://github.com/fivedoor/frame-test-210716
Output:
Version details: • check-pages [ 0.10.0 ] • Node [ v4.4.3 ] • Npm [ 3.8.9 ] • OS X 10.11.4 • Gulp 3.9.1
Thanks