I use less, this is my config of webpack 2.
{
test: /\.less$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: ['css-loader','less-loader']
})
}
It worked well but image is missing when I have background image value like this in my less file
.section-one{
background-color: @red500;
background-image: url(/images/landing/header.jpg);
background-position: center;
}
I have error of
GET http://localhost:8080/images/landing/header.jpg 404 (Not Found)
in my chrome console since I used webpack dev server