Skip to content

Generates spritesheet from single css file #182

@kalpeshsingh

Description

@kalpeshsingh

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions