Answer the question
In order to leave comments, you need to log in
Webpack 5 pictures?
How to work with images and background images in Webpack 5 now? I do it on the dock , the paths are the same, but it gives an error
Can't resolve './location.svg' in 'C:\Anton\Web\Sites\Webpack\src\scss'
Answer the question
In order to leave comments, you need to log in
You are specifying a relative path.
The path from the stylesheet.
./
means that the image is in the same folder as the scss file.
Just enter the correct path to the image, and you will be happy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question