Sha256: d96e2285c69164da28f91cbd26b2efe1fc04ceeb1cb5fb84c9afcf0f57739ae8

Contents?: true

Size: 391 Bytes

Versions: 8

Compression:

Stored size: 391 Bytes

Contents

# -*- encoding: utf-8 -*-

require 'webgen/content_processor'
webgen_require 'cssminify'

module Webgen
  class ContentProcessor

    # Minifies CSS files.
    module CSSMinify

      # Process the content of +context+ with CSSMinify (a CSS minifier).
      def self.call(context)
        context.content = ::CSSminify.compress(context.content)
        context
      end

    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
webgen-1.7.3 lib/webgen/content_processor/css_minify.rb
webgen-1.7.2 lib/webgen/content_processor/css_minify.rb
webgen-1.7.1 lib/webgen/content_processor/css_minify.rb
webgen-1.7.0 lib/webgen/content_processor/css_minify.rb
webgen-1.6.0 lib/webgen/content_processor/css_minify.rb
webgen-1.5.2 lib/webgen/content_processor/css_minify.rb
webgen-1.5.1 lib/webgen/content_processor/css_minify.rb
webgen-1.5.0 lib/webgen/content_processor/css_minify.rb