Last modified: 2014-04-08 17:38:59 UTC
CSSMin requires an explicit /* @embed */ directive to trigger image embedding. But embedding embeddable images is almost always desirable, and thus the more sensible behavior would be for image embedding to be opt-out (or, like minification, not optional at all). Instead of grepping of @embeds, CSSMin could inspect all url()s in the stylesheet to see whether they reference a local, embeddable image file. (An image is embeddable if it is not too large and if CSSMin recognizes its MIME type.) If the referenced is embeddable, CSSMin should simply embed it. Are there cases for which this behavior would not be desirable? If so, we can replace opt-in via /* @embed */ with opt-out via /* @noembed */. But let's first be sure that we would actually need it. it has a mime-type is under the size limit and