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

Explain path: 'path-to.svg' meaning #2068

Open
MHillier98 opened this issue Aug 30, 2024 · 1 comment
Open

Explain path: 'path-to.svg' meaning #2068

MHillier98 opened this issue Aug 30, 2024 · 1 comment

Comments

@MHillier98
Copy link

The README says:

const result = optimize(svgString, {
  path: 'path-to.svg', // recommended
  multipass: true, // all other config fields are available here
});

But I can't seem to find any docs or explanation of what this path: 'path-to.svg' parameter does or why it's recommended.
It would be helpful to know what this is exactly and why it's recommended :)

@KTibow
Copy link
Contributor

KTibow commented Aug 30, 2024

I think it's only used in prefixIds to determine the prefix, but you can add your own plugins that may use it as context

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

No branches or pull requests

2 participants