-
-
Notifications
You must be signed in to change notification settings - Fork 150
How to resolve assets routes in images #290
Comments
I had same issue, and tried multiple ways to solve it. in rollup.config.js
|
As @engblh suggested. |
@asanzdj Did you find a solution for this? The suggested one here doesn't seem to work for me. |
@znck can this be reopened? There is no comment from an account named |
Not working for me |
Doesn't work for me either. |
the problem is relevant the me |
Version
5.0.0
Reproduction link
https://codesandbox.io/embed/vue-template-3qsli
Steps to reproduce
Try the library: https://www.npmjs.com/package/daas-components
What is expected?
I'm trying to create a components library with rollup and vue, I have components with images storaged in an assets folder.
Objective:: When library is used in a project, images must be loaded.
What is actually happening?
Images are concatenating the app url path in their own path.
Resulted images::
Request URL: http://localhost:8080/APP_ROUTE/ROUTE_IM_TRYING/close.svg
I read about transformAssetUrls(https://rollup-plugin-vue.vuejs.org/options.html#template-transformasseturls) but I can't understand what is its objective and how is used.
The text was updated successfully, but these errors were encountered: