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

Replace <use> with hard coded <def> #1111

Open
mesqueeb opened this issue May 25, 2019 · 3 comments
Open

Replace <use> with hard coded <def> #1111

mesqueeb opened this issue May 25, 2019 · 3 comments

Comments

@mesqueeb
Copy link

Is there an option to, whenever <use> appears, and the <def> is available, to replace that <use> with the actual content?

@strarsis
Copy link
Contributor

Related?: #563

@mesqueeb
Copy link
Author

Yeaaap. I don’t need checking if the def is used once or multiple times though.

Just the feature to change all <use> with the actual def contents inline.

Sent with GitHawk

@strarsis
Copy link
Contributor

strarsis commented Sep 2, 2020

PR ready: #1279
No recursion yet, but svgo multipass feature should handle this.

@mesqueeb, @TheMuuj, @mixtur: You can already try this feature branch by installing it using this npm command:
npm install github:strarsis/svgo#dereferenceUses-plugin
Note that this plugin currently doesn't run by default and has to explicitly enabled:
svgo --enable=dereferenceUses [...]

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