lib/prez/files.rb in prez-0.0.2 vs lib/prez/files.rb in prez-0.0.3
- old
+ new
@@ -48,10 +48,11 @@
class << self
SEARCH_PATHS = {
"js" => Prez::Files::Paths.new("js", ["js.coffee", "coffee", "js"], "javascripts"),
"css" => Prez::Files::Paths.new("css", ["css.scss", "scss", "css"], "stylesheets"),
- "font" => Prez::Files::Paths.new("font", ["eot", "svg", "ttf", "woff", "woff2"], "fonts", binary: true)
+ "font" => Prez::Files::Paths.new("font", ["eot", "svg", "ttf", "woff", "woff2"], "fonts", binary: true),
+ "image" => Prez::Files::Paths.new("image", ["gif", "jpeg", "jpg", "png", "svg", "tif", "tiff"], "images", binary: true)
}
def contents(name, extension)
file = find name, extension