Closed pure-js closed 8 years ago
This is a duplicate of https://github.com/Ensighten/grunt-spritesmith/issues/156, https://github.com/Ensighten/grunt-spritesmith/issues/89, https://github.com/twolfson/spritesheet-templates/pull/43, and https://github.com/twolfson/spritesheet-templates/issues/11.
This request is entering CSS optimization territory and encourage developers to use another CSS optimization task after spritesmith
to handle adjusting rules (e.g. 0px
-> 0
). Here are some tools to evaluate:
Please add if statement for background position value, and if value is zero write it without
px
. At this moment generated code looks like this:But will be excellent, if it would look like this