-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
Description
Here is my file structure.
component > subcomponent > Example.vue
component > subcomponent > assets > photo.jpg
component > subcomponent > assets > [email protected]
Below is what I am trying to.
<!-- Example.vue -->
<img src="./assets/photo.jpg" srcset="./assets/[email protected] 2x">
<!-- Renderd -->
<img src="/static/img/photo.jpg" srcset="./assets/[email protected] 2x">
<!-- Expected -->
<img src="/static/img/photo.jpg" srcset="/static/img/[email protected] 2x">Maybe html-loader support srcset, but vue-html-loader does not support it?
Looks like same problem here.
https://stackoverflow.com/questions/40733102/vue-webpack-project-img-cannot-load-static-src
thedamon, jeffsmohan, sohrabtaee, stylergergely and rotsee