Make prefix and placeholder configurable
stefanjudis opened this issue · comments
Stefan Judis commented
Hello Joshi,
currently the generated .scss file uses always the 'svg-' prefix.
I'm planning to run this task for multiple sprite generation, so I'd like to set this prefix somehow.
Giving it the name of the generated file would also work fine.
Current:
%svg {
background-image:url(svg/sprite.svg);
background-repeat:no-repeat
}
.svg-acucar,
.svg-acucar\:regular {
@extend %svg;
background-position: 0 0;
}
.svg-acucar-dims {
width: 70px;
height: 70px;
}
Desired in _ingredients.scss
:
%ingredients {
background-image:url(svg/ingredients.svg);
background-repeat:no-repeat
}
.ingredients-acucar,
.ingredients-acucar\:regular {
@extend %svg;
background-position: 0 0;
}
.ingredients-acucar-dims {
width: 70px;
height: 70px;
}
Joschi Kuphal commented
This is what the --prefix
option is about (defaulting to svg). Doesn't this work for you?
Stefan Judis commented
Aaahhhhh shit... sorry.
I didn't check options of svg-sprite properly...
Joschi Kuphal commented
No problem. ;)