.xml removed from Gzip defaults
This commit is contained in:
parent
475fa41de0
commit
007c626d58
|
@ -22,7 +22,7 @@ Feature: GZIP assets during build
|
||||||
Given a fixture app "gzip-app"
|
Given a fixture app "gzip-app"
|
||||||
And a file named "config.rb" with:
|
And a file named "config.rb" with:
|
||||||
"""
|
"""
|
||||||
activate :gzip, exts: %w(.htm .html .js .xhtml .xml)
|
activate :gzip, exts: %w(.htm .html .js .xhtml)
|
||||||
"""
|
"""
|
||||||
And a successfully built app at "gzip-app"
|
And a successfully built app at "gzip-app"
|
||||||
Then the following files should exist:
|
Then the following files should exist:
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
# to .css, .htm, .html, .js, and .xhtml
|
# to .css, .htm, .html, .js, and .xhtml
|
||||||
#
|
#
|
||||||
class Middleman::Extensions::Gzip < ::Middleman::Extension
|
class Middleman::Extensions::Gzip < ::Middleman::Extension
|
||||||
option :exts, %w(.css .htm .html .js .svg .xhtml .xml), 'File extensions to Gzip when building.'
|
option :exts, %w(.css .htm .html .js .svg .xhtml), 'File extensions to Gzip when building.'
|
||||||
option :ignore, [], 'Patterns to avoid gzipping'
|
option :ignore, [], 'Patterns to avoid gzipping'
|
||||||
option :overwrite, false, 'Overwrite original files instead of adding .gz extension.'
|
option :overwrite, false, 'Overwrite original files instead of adding .gz extension.'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue