Don't asset_hash ico and manifest. Now with tests to prevent another regression.

This commit is contained in:
Ben Hollis 2012-06-01 23:54:57 -07:00
parent 2ab294c602
commit f287e0a2bc
3 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,7 @@ Feature: Assets get a file hash appended to their and references to them are upd
Then the following files should exist:
| index.html |
| apple-touch-icon.png |
| favicon.ico |
| images/100px-1242c368.png |
| images/100px-5fd6fb90.jpg |
| images/100px-5fd6fb90.gif |

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

View file

@ -4,7 +4,7 @@ module Middleman
class << self
def registered(app, options={})
require 'digest/sha1'
exts = options[:exts] || %w(.ico .manifest .jpg .jpeg .png .gif .js .css)
exts = options[:exts] || %w(.jpg .jpeg .png .gif .js .css)
# Allow specifying regexes to ignore, plus always ignore apple touch icons
ignore = Array(options[:ignore]) << /^apple-touch-icon/