-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Resolves #690: Add option to process folders recursively. #712
Conversation
Looks nice. Thanks! |
Actually, it works even without |
Ah nice! |
Can this also copy over the directory structure to the output directory? I am looking for that. |
Haven't tested it with a different output directory. I suggest creating a new issue for that feature. |
@GreLI Do you know if this feature will be available in a release anytime soon? |
Unfortunately, it has been lost it in some rewriting. New request is needed. |
help pls
svgo 1.0.0, what am I doing wrong? |
Haven't read the comment before. |
Getting |
@tomanistor That's because @dabutvin's PR to add back the functionality has not been merged yet and thus, is not available in a release. |
@epavletic Ah I see now - didn't catch that it was still an open PR. Hopefully it's added back in soon. |
Resolves #690
Added
--recursive/-r
flag to process folders recursively.Usage:
svgo -f ./my-folder -r
Just before checking if the "file" is an SVG, check if it's actually a directory and call
optimizeFolder()
on that directory.Let me know if you require any further adjustments. I wanted to keep them as light as possible.