Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retina images, optional? #167

Open
karedas opened this issue Mar 29, 2018 · 1 comment
Open

Retina images, optional? #167

karedas opened this issue Mar 29, 2018 · 1 comment

Comments

@karedas
Copy link

karedas commented Mar 29, 2018

Hi,
I have encountered a problem with your plugin. I have set the necessary options so that spritesmith processes the retina images, configuring what he needed (target path, name etc) and it works great.

However, I noticed that if I don't need to create retina images for some of these, the plugin will be mistaken by telling me that I need suffix images to complete the procedure.

events.js:112
      throw er; // Unhandled 'error' event
      ^

Error: Retina settings detected but 5 retina images were found. We have 13 normal images and expect these numbers to line up. Please double check `retinaSrcFilter`.

The most trivial solution would be to create two different tasks and specify the folder with "standard" and "retina" images and a task with the folder with "standard" images only. But it seems rather ugly.

Can this control be made optional?

(sorry for my bad english!)

@twolfson
Copy link
Owner

Could you explain your use case a little more? I don't understand when someone would need retina images sometimes and not all of the time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants