Open dahei opened 8 years ago
Noticed this too. Exactly same issue.
I was experiencing the same issue, thanks for the fix! A pull request for this addition would probably save some headaches - how about it?
Hey guys, sorry about the delay here, im actually travelling atm so wont be able to get this out till around the 28th. Will release it asap and put some tests around it when i get back.
Problem:
Using this plugin under Windows, the linting fails because PhantomJS just returns
As it seems, PhantomJS doesn't handle full Windows paths like C:\foo\bar\index.html which gets returned from the
file.path
Possible Solution:
I could make it work by hacking https://github.com/yargalot/gulp-accessibility/blob/master/index.js#L33
You could use https://github.com/sindresorhus/file-url
The file path gets converted to something like
file:///C:/foo/bar/index.html
which is fine for PhantomJS.
I haven't tested this conversion on OS X/Linux, but it shouldn't do no harm.
Maybe there a other solutions, it was the easiest way to fix it for me.