Answer the question
In order to leave comments, you need to log in
Webpack how to include an image?
Hello everyone, I've been studying webpack for three days and for two of them I can't figure out why my images don't work.
Here is my config
Here is my json
The essence of the problem is that in css I specify the background-image path to the image and run webpack
As a result, two images appear in the dist folder
One is mine, to which I specified the path
Another image with an error
And why is the path in css is built not to my picture, but to the picture with an error
*I explained it as best I could :)
Answer the question
In order to leave comments, you need to log in
Hmm .. somehow a smart person wrote an answer to 1 of the questions: "Sorry, show you the code, the religion that does not allow?" .. The situation is similar in my opinion.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question