twolfson / grunt-spritesmith

Grunt task for converting a set of images into a spritesheet and corresponding CSS variables
MIT License
1.14k stars 92 forks source link

wrong retina version for files with similar filenames #163

Closed toptalo closed 8 years ago

toptalo commented 8 years ago

I have several files with similar filenames such as:

menu-greendark-close.png
menu-greendark-close@2x.png
menu-greendark-close-small.png
menu-greendark-close-small@2x.png

Plugin return an error:

Normal sprite has inconsistent size with retina sprite. "./img/sprite/menu-greendark-close.png" is 40x38 while "./img/sprite/menu-greendark-close-small@2x.png" is 40x38.
twolfson commented 8 years ago

Can you add gulp-debug after gulp.src and tell us what the output is?

https://github.com/sindresorhus/gulp-debug

toptalo commented 8 years ago

hmm, how can i add gulp plugin to grunt?

toptalo commented 8 years ago

Sorry, it's my fall I missed some normal-size files! Thanks!

twolfson commented 8 years ago

Glad to hear the issue got resolved =)