Skip to content

Commit

Permalink
Update lib/asset_sync/storage.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE authored Aug 16, 2023
1 parent 676c124 commit f2ecf24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/asset_sync/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ def upload_file(f)
if config.compression
compressed_name = "#{path}/#{f}.#{config.compression}"

# `File.extname` returns value with `.` prefix, `config.compression` contains value without `.`
if File.extname(f)[1..-1] == config.compression
# Don't bother uploading compressed assets if we are in compression mode
# as we will overwrite file.css with file.css.gz if it exists.
Expand Down

0 comments on commit f2ecf24

Please sign in to comment.