twolfson/grunt-spritesmith

wrong retina version for files with similar filenames

Closed this issue · 4 comments

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.

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

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

hmm, how can i add gulp plugin to grunt?

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

Glad to hear the issue got resolved =)