Class: Middleman::Imageoptim::Extension
- Inherits:
-
Extension
- Object
- Extension
- Middleman::Imageoptim::Extension
- Defined in:
- lib/middleman-imageoptim/extension.rb
Instance Method Summary collapse
Instance Method Details
#after_build(builder) ⇒ Object
7 8 9 |
# File 'lib/middleman-imageoptim/extension.rb', line 7 def after_build(builder) Middleman::Imageoptim::Optimizer.optimize!(app, builder, ) end |
#manipulate_resource_list(resources) ⇒ Object
11 12 13 14 |
# File 'lib/middleman-imageoptim/extension.rb', line 11 def manipulate_resource_list(resources) return resources unless .manifest Middleman::Imageoptim::ResourceList.manipulate(app, resources, ) end |