When I'm trying to load an image
<img class="brand" alt="Brand" width="50%" height="50%" src="/logo.jpg">
It produces the following error:
logo.jpg:1 GET http://localhost:8080/logo.jpg 404 (Not Found)
webpack.config.js:
module: {
loaders: [
{
test: /\.html$/,
exclude: /index\.html$/,
loader: 'html-loader?root=./assets/images&interpolate&name=./views/[name].[ext]'
},
{
test: /\.(png|jpg|jpeg|gif)$/,
loader: 'url-loader?limit=10000&name=./assets/images/[name].[ext]'
}
]
}