Skip to content
This repository
Browse code

Extend the set of compressible files by some common types.

  • Loading branch information...
commit c763b03d1544039a1cc5ade21d33d097d550bb6c 1 parent 8e727ec
r-stu31 authored January 08, 2012
2  actionpack/lib/sprockets/static_compiler.rb
@@ -11,7 +11,7 @@ def initialize(env, target, paths, options = {})
11 11
       @digest = options.key?(:digest) ? options.delete(:digest) : true
12 12
       @manifest = options.key?(:manifest) ? options.delete(:manifest) : true
13 13
       @manifest_path = options.delete(:manifest_path) || target
14  
-      @zip_files = options.delete(:zip_files) || /\.(css|js)$/
  14
+      @zip_files = options.delete(:zip_files) || /\.(?:css|html|js|svg|txt|xml)$/
15 15
     end
16 16
 
17 17
     def compile

0 notes on commit c763b03

Please sign in to comment.
Something went wrong with that request. Please try again.