Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Extend the set of compressible files by some common types.

  • Loading branch information...
commit c763b03d1544039a1cc5ade21d33d097d550bb6c 1 parent 8e727ec
@r-stu31 r-stu31 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/sprockets/static_compiler.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.