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 df539e2743
commit fbb7820ecd

View file

@ -7,7 +7,7 @@ module Middleman
require 'rack/test' require 'rack/test'
require 'uri' 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 # Allow specifying regexes to ignore, plus always ignore apple touch icons
ignore = Array(options[:ignore]) << /^apple-touch-icon/ ignore = Array(options[:ignore]) << /^apple-touch-icon/