Please check if your PR fulfills the following requirements:
[x] The commit message follows our guidelines: CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:
What is the current behavior?
The SVG generator doesn't pass the path parameter when calling SVG Optimize. This leads to some features not working with SVG Optimize plugins. The concrete example I found is when you use prefixIds plugin it would use the source file's name as a prefix by default. The exact implementation can be seen here: https://github.com/svg/svgo/blob/master/plugins/prefixIds.js#L194
Issue Number: N/A
What is the new behavior?
SVG generator passes path parameter to SVG Optimize.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The SVG generator doesn't pass the path parameter when calling SVG Optimize. This leads to some features not working with SVG Optimize plugins. The concrete example I found is when you use
prefixIds
plugin it would use the source file's name as a prefix by default. The exact implementation can be seen here: https://github.com/svg/svgo/blob/master/plugins/prefixIds.js#L194Issue Number: N/A
What is the new behavior?
SVG generator passes path parameter to SVG Optimize.
Does this PR introduce a breaking change?
Other information