Answer the question
In order to leave comments, you need to log in
How to make srcset and webpack 4 friends?
Images are loaded like this
loader: "html-loader",
options: {
attrs: ['source:src','img:src'],
}
but adding srcset to the webpack attributes does not find them, giving an error
GET localhost:8080/~images/ pre750.png 404 (Not Found)
how to set it up?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question