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

How to support '@3' retina? #81

Open
wind4gis opened this issue Jan 22, 2019 · 3 comments
Open

How to support '@3' retina? #81

wind4gis opened this issue Jan 22, 2019 · 3 comments

Comments

@wind4gis
Copy link

Excuse me, How to support '@3' retina and '@2' at the same time?

@mixtur
Copy link
Owner

mixtur commented Jan 22, 2019

I don't think it is possible with this plugin. It is modeled after gulp-spritesmith and it doesn't seem to support that.
It will require different compilation strategy and different api templates. Now it is hard coded to either create spritesheet from one set of images or two spritesheets from two sets of images. And api templates I am using are also assuming either one or two sets of images.

@wind4gis
Copy link
Author

@mixtur can I use node-glob, and I put @1 @2 @3 three type of picture into three folder, just new three plugin to support?

@mixtur
Copy link
Owner

mixtur commented Jan 22, 2019

You can create three instances of plugin, yes. It will produce three different spritesheets, depeding on how you configure each instance, but it will also produce three APIs.
If you want them to cooperate you'll have to do this coordination yourself.

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