mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-27 18:38:49 +00:00
Only sprite images smaller than 32KB.
Reviewed by me.
This commit is contained in:
1 parent
d6b338b160
commit
e3fe4ff92f
1 file changed
+2
-1
@@ -359,7 +359,8 @@ BundleTask.prototype.defineResourceTask = function(aResourcePath, aDestinationPa
|
||||
var extension = FILE.extension(aResourcePath).toLowerCase(),
|
||||
extensionless = aResourcePath.substr(0, aResourcePath.length - extension.length);
|
||||
|
||||
if (this.spritesResources() && IMAGE_EXTENSIONS.indexOf(extension) !== -1)
|
||||
// Don't sprite images larger than 32KB, IE 8 doesn't like it.
|
||||
if (this.spritesResources() && IMAGE_EXTENSIONS.indexOf(extension) !== -1 && FILE.size(aResourcePath) < 32768)
|
||||
{
|
||||
var spritedDestinationPath = FILE.join(this.buildIntermediatesProductPath(), "Browser" + ".platform", "Resources", FILE.relative(this.resourcesPath(), aDestinationPath));
|
||||
|
||||
|
||||
Reference in new issue
Block a user