cascornelissen / svg-spritemap-webpack-plugin

SVG spritemap plugin for webpack
MIT License
207 stars 49 forks source link

fix for direct svg file path options #193

Closed volarname closed 2 years ago

cascornelissen commented 2 years ago

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.

cascornelissen commented 2 years ago

I'm closing this because this change has landed in master, more information in #192.