From c763b03d1544039a1cc5ade21d33d097d550bb6c Mon Sep 17 00:00:00 2001 From: r-stu31 Date: Sun, 8 Jan 2012 12:28:33 +0100 Subject: [PATCH] Extend the set of compressible files by some common types. --- actionpack/lib/sprockets/static_compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actionpack/lib/sprockets/static_compiler.rb b/actionpack/lib/sprockets/static_compiler.rb index 5146e12d70940..719df0bd514db 100644 --- a/actionpack/lib/sprockets/static_compiler.rb +++ b/actionpack/lib/sprockets/static_compiler.rb @@ -11,7 +11,7 @@ def initialize(env, target, paths, options = {}) @digest = options.key?(:digest) ? options.delete(:digest) : true @manifest = options.key?(:manifest) ? options.delete(:manifest) : true @manifest_path = options.delete(:manifest_path) || target - @zip_files = options.delete(:zip_files) || /\.(css|js)$/ + @zip_files = options.delete(:zip_files) || /\.(?:css|html|js|svg|txt|xml)$/ end def compile