Hello!
I can't understand why svgo *.svg doesn't work for me.
svgo image.svg works, but svgo *.svg doesn't.
It gives an error no such file or directory ...
I'm afraid that's Windows issue. Usually shell passes all svg filenames.
Use Git Bash on Windows.
@grig0ry git bash works, thank you!
I'm seeing this issue on a Mac using SVGO in conjunction with lint-staged.
Not yarn svgo *.svg --pretty --config=svgo.config.format.json
nor svgo *.svg
nor yarn svgo *.svg
Error: Error: no such file or directory '*.svg'.
Looks like on v10 of lint-staged you'll just wanna do:
"**/*.svg": [
"svgo"
]
(plus whatever flags, but no file or folder targeting)
Most helpful comment
Use Git Bash on Windows.