L
L
Loli12342021-10-12 11:05:20
webpack
Loli1234, 2021-10-12 11:05:20

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

616540eb59691441930492.jpeg

Here is my json

616540fb36e40832015780.jpeg

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

616541756dbfb186340535.jpeg

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

2 answer(s)
V
Vlad Timofeev, 2014-12-02
@PyTiMa

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.

M
ModestesGonze, 2014-12-02
@ModestesGonze

Wang that you need to specify min-width for html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question