Answer the question
In order to leave comments, you need to log in
How to change image paths in scss with webpack?
It is necessary that the paths in the type
properties change tocontent:url('/img/dropdown.png');
content:url('/app/img/dropdown.png');
Answer the question
In order to leave comments, you need to log in
Try to set it in 'name' option, in 'context' you can set where to look for pictures.
use: [{
loader: 'file-loader',
options: {
name: 'img/[path][name].[ext]',
context: './src/pages/'
}
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question