Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass options to svgo in rails config #119

Open
jackycute opened this issue Jan 5, 2016 · 2 comments
Open

Cannot pass options to svgo in rails config #119

jackycute opened this issue Jan 5, 2016 · 2 comments

Comments

@jackycute
Copy link

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

@toy
Copy link
Owner

toy commented Mar 7, 2016

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?

@jackycute
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants