Closed wzup closed 6 years ago
@include sprite($-united-states);
should work.
I am not generating this code myself. I am using spritesheet-templates to do that.
Looks like it is a tuple with all parameters of sprite. Code seems to be generated the way that you can use $iconName
in @include sprite($iconName)
.
Yes, that's correct, @include sprite($-united-states);
.
I managed to configure it.
So your plugin generates the following mixin. But your docs says nothing about
$sprite
variable. What is$sprite
variable?I'm generating sprite for
.png
flags. Your plugin generates the following. So, what is$sprite
variable then?How do I call an image? This throws:
BTW: The error still remains. I expanded it https://github.com/mixtur/webpack-spritesmith/issues/53#issuecomment-372675263