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
Simply reference your image with a relative path (from *.vue file containing that "src"). Alternatively, you can use ~assets/... (to directly reference a file from /src/assets folder (this is due to the fact that the default project template created by Quasar CLI offers the assets Webpack alias).
Example referencing an asset:
<imgsrc="~assets/some-image.png">
Example referencing a static asset:
<img:src=" 'statics/some-image.png' "><!-- this is just a trick using dynamic Vue property so Webpack won't pick this image and reference it dynamically -->
How to make images that are referenced dynamically, also be considered by the webpack?
Today only the fixed paths and the contents of the "static" directory are considered.
Thank you.
The text was updated successfully, but these errors were encountered: