Different path for static assets in frontend application #137
Unanswered
jaindivij21
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Q1. As mentioned in the documentation, I can use the following path i.e. app/javascript/images/example.png to store my static assets like images. But I was wondering if I could change the path of these assets like images and icons (SVGs) to something more conventional like app/javascript/public/assets/images/example.png etc.
Q2. Is there a way of directly using the static asset? Importing each icon I'll be using on the page above is cumbersome. Is there a way to call it directly at the place of use?
Beta Was this translation helpful? Give feedback.
All reactions