Closed nelsond closed 8 years ago
I added (optional) options to allow excluding or including specific tweaks.
Include tweaks using the with option:
# single tweak SvgOptimizer.optimize(xml, with: :remove_comment) # multiple tweaks SvgOptimizer.optimize(xml, with: [:remove_comment, :remove_empty_container])
Exclude tweaks using the without option:
# excluding a single tweak SvgOptimizer.optimize(xml, without: :remove_comment) # excluding multiple tweaks SvgOptimizer.optimize(xml, without: [:remove_comment, :remove_empty_container])
I implemented something simpler; just passing an array of plugins.
👍
I added (optional) options to allow excluding or including specific tweaks.
Include tweaks using the with option:
Exclude tweaks using the without option: