lib/jammit/compressor.rb in jammit-ebtd-0.6.7 vs lib/jammit/compressor.rb in jammit-ebtd-0.6.8
- old
+ new
@@ -94,10 +94,14 @@
# :datauri or :mhtml variant, post-processes the result to embed
# referenced assets.
def compress_css(paths, variant=nil, asset_url=nil)
@asset_contents = {}
css = concatenate_and_tag_assets(paths, variant)
- css = @css_compressor.compress(css) if Jammit.compress_assets
+ begin
+ css = @css_compressor.compress(css) if Jammit.compress_assets
+ rescue
+ puts paths
+ end
case variant
when nil then return css
when :datauri then return with_data_uris(css)
when :mhtml then return with_mhtml(css, asset_url)
else raise PackageNotFound, "\"#{variant}\" is not a valid stylesheet variant"