mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-16 11:40:42 +00:00
Merge branch 'master' of github.com:280north/cappuccino
This commit is contained in:
commit
8dd61155bf
1 file changed
+3
-1
@@ -453,7 +453,9 @@ BundleTask.prototype.resourcesPath = function()
|
||||
|
||||
// Don't sprite images larger than 32KB, IE 8 doesn't like it.
|
||||
BundleTask.isSpritable = function(aResourcePath) {
|
||||
return isImage(aResourcePath) && FILE.size(aResourcePath) < 32768;
|
||||
return isImage(aResourcePath) && FILE.size(aResourcePath) < 32768 &&
|
||||
("data:" + mimeType(aResourcePath) + ";base64," +
|
||||
base64.encode(FILE.read(aResourcePath, "b"))).length < 32768;
|
||||
}
|
||||
|
||||
BundleTask.prototype.defineResourceTask = function(aResourcePath, aDestinationPath)
|
||||
|
||||
Reference in new issue
Block a user