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

Synchronous transformer #4

Open
hallaji opened this issue Dec 16, 2020 · 1 comment
Open

Synchronous transformer #4

hallaji opened this issue Dec 16, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@hallaji
Copy link
Contributor

hallaji commented Dec 16, 2020

Hi there 👋

I was wondering whether there is a synchronous transformer of the plugin or not? My website is statically generated and I am using a synchronous processor. That throws an error because inlineSVG is configured asynchronously.

@JamesMessinger JamesMessinger added the enhancement New feature or request label Jan 2, 2021
@JamesMessinger
Copy link
Member

Currently everything is written asynchronously, including all file I/O and SVG optimization. It would be pretty trivial to write a synchronous version of the file I/O, but the SVG optimization is a different story. I use svgo to do the optimization, and it only provides an async API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants