You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.
Instead of loading asynchronously the generated .svg file, is there a way to retrieve synchronously it's content in a js file in order to insert it in the webpage the way we want to ?
Hi,
I had the same need, so I did like this: var __svg__ = { path: '../icons/*.svg', name: '[hash].icons.svg' }; // console.log(__svg__.filename); - Has the public path of the file, so you can use it for what you want. // For example: <svg> <use xlink:href="<%=__svg__.filename %>#icon-<name>" /> </svg>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Instead of loading asynchronously the generated .svg file, is there a way to retrieve synchronously it's content in a js file in order to insert it in the webpage the way we want to ?
Something like this :
Thanks!
The text was updated successfully, but these errors were encountered: