I don't think the parent directory of each file should be watched as other files in those same directories could also be changed which should not cause the plugin to regenerate the spritemap. Instead the file should be added to this.files but that seems to happen already
Could you add some tests to cover these cases? Then I can also dive into the implementation a bit deeper as it's easier to verify the changes afterwards.
I don't think the parent directory of each file should be watched as other files in those same directories could also be changed which should not cause the plugin to regenerate the spritemap. Instead the file should be added to
this.files
but that seems to happen alreadyCould you add some tests to cover these cases? Then I can also dive into the implementation a bit deeper as it's easier to verify the changes afterwards.