added font file types to asset_hash extension

added svg files to asset_hash extension
This commit is contained in:
Nico Hagenburger 2013-01-09 22:07:41 +01:00 committed by Thomas Reynolds
parent aa633a1cd3
commit 0bedb36f3f

View file

@ -7,7 +7,7 @@ module Middleman
require 'rack/test'
require 'uri'
exts = options[:exts] || %w(.jpg .jpeg .png .gif .js .css)
exts = options[:exts] || %w(.jpg .jpeg .png .gif .js .css .otf .woff .eot .ttf .svg)
# Allow specifying regexes to ignore, plus always ignore apple touch icons
ignore = Array(options[:ignore]) << /^apple-touch-icon/