danielmahon/gatsby-remark-relative-images

Strict mode for invalid image paths

wilitp opened this issue · 0 comments

I've encountered that if I wanted to throw an exception detailing:

  • which file contained an invalid path to an image
  • The actual invalid path

I can not get the latter, given that the node created for an invalid path is null when querying it.

Is there any way one can get the string for the invalid path? Is there any way for the plugin to be strict about the validity of every path?