mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Don't asset_hash ico and manifest. Now with tests to prevent another regression.
This commit is contained in:
parent
2ab294c602
commit
f287e0a2bc
3 changed files with 2 additions and 1 deletions
|
@ -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 |
|
||||
|
|
BIN
middleman-more/fixtures/asset-hash-app/source/favicon.ico
Normal file
BIN
middleman-more/fixtures/asset-hash-app/source/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 318 B |
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue