-
Notifications
You must be signed in to change notification settings - Fork 51
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
Importing from an addon #20
Comments
These issues might be related:
Can we have some workaround until ember-cli/ember-cli#4211 lands? |
We are using the following workaround in an internal addon we have developed which relies on
in addition to having |
@vitch Thank you so much for sharing! Where does this code go? |
In the |
@vitch I've tried your workaround and it worked for me. Thank you so much! The only issue is that and addon's SVGs located at {{inline-svg 'svg/foo'}} According to Ember CLI docs, addon's public folder gets mixed into the app's public folder as a subfolder. For example, when you access the same SVG file via .foo {
background-image: url('/my-addon/svg/foo.svg');
} <img src='/my-addon/svg/foo.svg'> For consistency, I would like {{inline-svg 'my-addon/svg/foo'}} Can your code be adjusted to achieve that? |
Have you guys worked out how to import from node modules in a brocfile? |
ember-inline-svg
fails importing an svg from an addon'spublic/
folder.I would like to inline an svg from an addon's
public/
folder both in the main app and in the addon itself.The text was updated successfully, but these errors were encountered: