Howdy, I found a bug (#5) in the sprites task. The last file in the list generated by src was always being left out. And in the case where only 1 image exists in a sprite, nothing happens at all.
I opted to use async.js to help control the async flow of reading the files into memory. It shortens the code, makes it more readable, and less prone to "off-by-one" errors such as this one.
Howdy, I found a bug (#5) in the sprites task. The last file in the list generated by
src
was always being left out. And in the case where only 1 image exists in a sprite, nothing happens at all.I opted to use async.js to help control the async flow of reading the files into memory. It shortens the code, makes it more readable, and less prone to "off-by-one" errors such as this one.