From 007c626d585e970d70c5de63a40a08b6985c4ac3 Mon Sep 17 00:00:00 2001 From: FearGoidte Date: Thu, 28 Jan 2016 08:16:23 +0000 Subject: [PATCH] .xml removed from Gzip defaults --- middleman-core/features/gzip.feature | 2 +- middleman-core/lib/middleman-core/extensions/gzip.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/features/gzip.feature b/middleman-core/features/gzip.feature index 107b696d..643972bc 100644 --- a/middleman-core/features/gzip.feature +++ b/middleman-core/features/gzip.feature @@ -22,7 +22,7 @@ Feature: GZIP assets during build Given a fixture app "gzip-app" 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" Then the following files should exist: diff --git a/middleman-core/lib/middleman-core/extensions/gzip.rb b/middleman-core/lib/middleman-core/extensions/gzip.rb index 9ca9da0e..0483fe32 100644 --- a/middleman-core/lib/middleman-core/extensions/gzip.rb +++ b/middleman-core/lib/middleman-core/extensions/gzip.rb @@ -10,7 +10,7 @@ # to .css, .htm, .html, .js, and .xhtml # 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 :overwrite, false, 'Overwrite original files instead of adding .gz extension.'