twolfson / gulp.spritesmith

Convert a set of images into a spritesheet and CSS variables via gulp
The Unlicense
1.08k stars 81 forks source link

Can I have 2 sprites? #105

Closed JuliaRietveld25 closed 8 years ago

JuliaRietveld25 commented 8 years ago

Hi Todd, thanks for this very useful gulpfile.I wonder if it's possible to use some kind of namespacing of a prefix for $stylesheet and $sprite variables. I need to generate 2 sprites in my project. They produce the same scss variable names and break my styling. Any ideas? Thank you in advance,

Julia from The Netherlands

twolfson commented 8 years ago

Namespacing can be done via the cssVarMap option. See the README documentation for example usage:

https://github.com/twolfson/gulp.spritesmith/tree/6.2.1#variable-mapping