If you mean that it combines individual images into one, I have not seen anything like it yet. This will probably work with a tool or something else, since javascript cannot easily do something like this.
If calculating the background position of the finished sprites is what you need, then check this question, it has a solution just for that.
Calculating the background position using a formula in LESS Css
Mikko tapionlinna
source share