Permalink
Browse files

Zip bundled assets

  • Loading branch information...
josh committed Feb 25, 2013
1 parent 40cab32 commit eb84c414b76850af9b51bc495a52fb15d6ad24e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sprockets/manifest.rb
@@ -132,7 +132,7 @@ def compile(*args)
else
logger.info "Writing #{target}"
asset.write_to target
- asset.write_to "#{target}.gz" if target =~ /\.(js|css)$/
+ asset.write_to "#{target}.gz" if asset.is_a?(BundledAsset)
end
save

0 comments on commit eb84c41

Please sign in to comment.