Class: Middleman::Extensions::MinifyCss
- Inherits:
-
Middleman::Extension
- Object
- Middleman::Extension
- Middleman::Extensions::MinifyCss
- Defined in:
- lib/middleman-core/extensions/minify_css.rb
Overview
Minify CSS Extension
Defined Under Namespace
Classes: Rack, SassCompressor
Constant Summary
Constants included from Contracts
Instance Attribute Summary
Attributes inherited from Middleman::Extension
Instance Method Summary collapse
Methods inherited from Middleman::Extension
activated_extension, #add_exposed_to_context, #after_build, #after_configuration, #after_extension_activated, after_extension_activated, #before_build, #before_configuration, clear_after_extension_callbacks, config, define_setting, expose_to_application, expose_to_config, expose_to_template, global_config, helpers, #initialize, #manipulate_resource_list, option, resources
Methods included from Contracts
Constructor Details
This class inherits a constructor from Middleman::Extension
Instance Method Details
#ready ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/middleman-core/extensions/minify_css.rb', line 16 def ready # Setup Rack middleware to minify CSS app.use Rack, compressor: [:compressor], ignore: Array([:ignore]) + [/\.min\./], inline: [:inline], content_types: [:content_types], inline_content_types: [:inline_content_types] end |