Using Middleman 2.0.14, I use the Compass features to generate some sprites in my CSS file with:
@import "companies/*.png";
@include all-companies-sprites;
This takes all the files from source/images/companies/*.png and generates a single sprite file source/images/companies-s45e421528f.png. So far, so good.
When I do a middleman build, it dutifully copies over the generated image file, but also includes the companies/*.png files.
Its not a big deal to have a deployment script remove these extra files, but I wonder if there is an option I’m missing somewhere? (Or maybe the ‘almost ready to release MM 3.x’ has a solution?) Perhaps I should put the companies/*.png files somewhere else in the source tree?
I suggest cleaning them up with a script (or an
after_buildhook). This is the default behavior of Compass, to generate images in development mode, and it would require some monkey patching to alter (for now, the Compass beta have direct access to these options).In 3.0, you could try:
But I’m not sure Compass wouldn’t choke on that.