Module: Webgen::ContentProcessor::Rainpress
- Defined in:
- lib/webgen/content_processor/rainpress.rb
Overview
Minifies CSS files.
Class Method Summary collapse
-
.call(context) ⇒ Object
Process the content of
context
with Rainpress (a CSS minifier).
Class Method Details
.call(context) ⇒ Object
Process the content of context
with Rainpress (a CSS minifier).
13 14 15 16 |
# File 'lib/webgen/content_processor/rainpress.rb', line 13 def self.call(context) context.content = ::Rainpress.compress(context.content, context.website.config['content_processor.rainpress.options']) context end |