For my output settings I have used a function to create custom prefixes via the sprite.prefix configuration option. This function generates ID names that include the parent folders, which means we can have multiple source SVGs with the same filename so long as they live in different folders. I was hoping to get the same naming used for the LESS variables that are created, and found sprite.prefixStylesSelectors but this seems to only work when using SCSS (unless I'm missing something?)Is there a way to specify/support this in the LESS output?
EDIT: I found that this has already been fixed when installing from master π
I'm also wanting to output two different SVG spritemaps, and it's my understanding that I should be able to just call SVGSpritemapPlugin twice in my webpack config to do this β however there doesn't seem to be a way to prefix/customise the name of the LESS mixin that is created, which defaults to .sprite() and means that one would override the other. Is this something that is achievable currently?
Thanks, I'm new to this plugin but really loving it so far!
For my output settings I have used a function to create custom prefixes via thesprite.prefix
configuration option. This function generates ID names that include the parent folders, which means we can have multiple source SVGs with the same filename so long as they live in different folders. I was hoping to get the same naming used for the LESS variables that are created, and foundsprite.prefixStylesSelectors
but this seems to only work when using SCSS (unless I'm missing something?)Is there a way to specify/support this in the LESS output?EDIT: I found that this has already been fixed when installing frommaster
πI'm also wanting to output two different SVG spritemaps, and it's my understanding that I should be able to just call
SVGSpritemapPlugin
twice in my webpack config to do this β however there doesn't seem to be a way to prefix/customise the name of the LESS mixin that is created, which defaults to.sprite()
and means that one would override the other. Is this something that is achievable currently?Thanks, I'm new to this plugin but really loving it so far!