OliverHH's avatar

Webpack mix vue template load data-src

Hello,

I try to load an image in a vue template with an data-src attribute

Thanks Oliver

0 likes
1 reply
OliverHH's avatar

Like this

img data-src="~assets PATH TO IMAGE"

The data-src attribute does not get interpreted with the webpack loaders The browser tries to load the image from ~assets PATH TO IMAGE When I replace the data-src with src then the image is correctly loaded How do I have to configure it in the webpack mix js file? Does anyone have an idea?

Sorry for the missing of dots But I can not post with dots

Please or to participate in this conversation.