Class: Middleman::Imageoptim::Extension

Inherits:
Extension
  • Object
show all
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, options)
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 options.manifest
  Middleman::Imageoptim::ResourceList.manipulate(app, resources, options)
end