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

Locale path inside svelte component ? #118

Closed
kiuKisas opened this issue Jan 8, 2021 · 2 comments
Closed

Locale path inside svelte component ? #118

kiuKisas opened this issue Jan 8, 2021 · 2 comments

Comments

@kiuKisas
Copy link
Contributor

kiuKisas commented Jan 8, 2021

So, I try to use svelte-inline-svg to import an inline svg from a file.
Example:

  <InlineSVG src="/logo.svg" />

It required a path to the svg, but I can't figure it out how I can give it the correct path. I'm not even sure if it's possible in the current state of elder ?

@nickreese
Copy link
Contributor

@kiuKisas I'd need to play with the inline-svg plugin, but it appears you just give it the path relative to the Svelte file you are working in. Is that not working?

The way I've handled SVGs internally is via an Elder.js shortcode that reads the file, compresses it, and outputs the base64 representation.

@kiuKisas
Copy link
Contributor Author

No it doesn't, I tried different localisations, without success.

I though about it, probably the way I'll go for now. Thank's :)

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