Cannot pass options to svgo in rails config
I want to set svgo false or disable some plugins of it, but it just won't work.
I put below line in my production.rb
config.assets.image_optim = {pngout: false, svgo: {disable_plugins: ['convertPathData']}}
Tried several times but still no good, svgo touched my svg files, not even svgo:false work too.
Fortunately pngout: false works good.
BTW
~/.config/image_optim.yml
./.image_optim.yml
still working
version of image_optim: 0.22.0 version of svgo: 0.6.1
I've switched verbose mode by adding verbose: true to view which commands are executed and with your options I see svgo --disable\=convertPathData … in the output.
Also when I disable svgo by specifying svgo: false, svgo is not executed.
It is a late reply, but is it possible for you to provide more information on this issue? What do you mean by svgo touched files?
Touched means svgo still change my files. It's kind of a previous issue, I'm not sure what will it be now.
I will reply after I check it again.