Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 9fb6877

Browse files
committed
X
1 parent b420afc commit 9fb6877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tasks/requirejs-rails_tasks.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ OS X Homebrew users can use 'brew install node'.
174174
requirejs.manifest[module_script_name] = digest_name
175175
FileUtils.cp built_asset_path, digest_asset_path
176176

177-
if requirejs.env.gzip?
178-
# Create the compressed versions
177+
# Create the compressed versions unless gzip disabled
178+
if !requirejs.env.respond_to?(:gzip?) || requirejs.env.gzip?
179179
File.open("#{built_asset_path}.gz", 'wb') do |f|
180180
zgw = Zlib::GzipWriter.new(f, Zlib::BEST_COMPRESSION)
181181
zgw.write built_asset_path.read

0 commit comments

Comments
 (0)