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

Used in an addon, but images from app #274

Open
boesi opened this issue Oct 28, 2024 · 0 comments
Open

Used in an addon, but images from app #274

boesi opened this issue Oct 28, 2024 · 0 comments

Comments

@boesi
Copy link

boesi commented Oct 28, 2024

🤔 Question

I have an addon 'MyAddon' with a component 'MyComponent', that I'd like to support SVGs via ember-svg-jar. But the actual SVG images should come from MyApp, that uses MyAddon.

Calling MyComponent is simple: ```<MyComponent @svg="image-name"/>

But where do I put the images?

  • MyAddon/public would work, but the images belong to MyApp and not MyAddon.
  • Can I somehow configure sourceDirs to load the images from MyApp/public?
  • I could add ember-svg-jar as a dependency to MyApp, but it's really only a dependency of MyAddon.
  • I could modify the buildOptions function in ember-svg-jar/lib/build-options.js - no I won't do that.

Thanks for your help

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

1 participant