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

Generates spritesheet from single css file #182

Open
kalpeshsingh opened this issue Oct 24, 2018 · 5 comments
Open

Generates spritesheet from single css file #182

kalpeshsingh opened this issue Oct 24, 2018 · 5 comments

Comments

@kalpeshsingh
Copy link

Hey Gleb,

I'm using CSS Modules in my project and I have one css file per component. When I refer to the same sprite name in two different spritesheet then sprite is generated from single css file and doesn't take icons from different stylesheets into the account.

Example -

/* Modal.css */
.closeIcon {
 background-image: ('../../path/to/icon.png#sprite');
}
/* Dropdown.css */
.arrow {
 background-image: ('../../path/to/icon.png#sprite');
}

Now, The the generated sprite is taking only one file into the account and generating sprite. Ideally, it should take all the icons from different css files and spit out into single sprite.png.

@glebmachine
Copy link
Owner

glebmachine commented Oct 24, 2018 via email

@kalpeshsingh
Copy link
Author

I would like to take a stab on this, can you point me to right direction?

Where can I make changes? What kind of changes it will require?

@glebmachine
Copy link
Owner

I can't point you, need to research on this(

@shyam528
Copy link

I have also faced the same issue. .any success?

@kalpeshsingh
Copy link
Author

@glebmachine - Thanks for releasing 1.0.0.
Any plan to consider this issue?

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

No branches or pull requests

4 participants