def compress
      @assets.each do |asset|
        # Find a compressor to use
        klass = ::JekyllAssetPipeline::Compressor.subclasses.select do |c|
          c.filetype == @type
        end.last

        break unless klass

        begin
          asset.content = klass.new(asset.content).compressed
        rescue StandardError => e
          puts "Asset Pipeline: Failed to compress '#{asset.filename}' " \
               "with '#{klass}': #{e.message}"
          raise e
        end
      end
    end
def compress
      @assets.each do |asset|
        # Find a compressor to use
        klass = ::JekyllAssetPipeline::Compressor.subclasses.select do |c|
          c.filetype == @type
        end.last

        break unless klass

        begin
          asset.content = klass.new(asset.content).compressed
        rescue StandardError => e
          puts "Asset Pipeline: Failed to compress '#{asset.filename}' " \
               "with '#{klass}': #{e.message}"
          raise e
        end
      end
    end
Compress assets if compressor is defined