mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Skip all images, not just .gif.
Reviewed by me.
This commit is contained in:
@@ -92,8 +92,8 @@ function gen(/*va_args*/)
|
||||
if (FILE.isDirectory(path))
|
||||
continue;
|
||||
|
||||
// FIXME: HACK
|
||||
if (path.indexOf('.gif') !== -1)
|
||||
// Don't do this for images.
|
||||
if ([".png", ".jpg", ".jpeg", ".gif", ".tif", ".tiff"].indexOf(FILE.extension(path)) !== -1)
|
||||
continue;
|
||||
|
||||
var contents = FILE.read(path, { charset : "UTF-8" }),
|
||||
|
||||
Reference in New Issue
Block a user