Im trying to reconfigure my webpack, and now i cannot load the css files. i keep my styles in src > styles > main.css
I am getting errors such as
ERROR
Just an update, I got warnings using this setup for webpack.config.js
So to solve the warnings I have to change to this:
{
test: /\.(jpe?g|png|gif|svg)$/i,
use: [
{
loader: 'file-loader',
options: {
query: {
name:'assets/[name].[ext]'
}
}
},
{
loader: 'image-webpack-loader',
options: {
query: {
mozjpeg: {
progressive: true,
},
gifsicle: {
interlaced: true,
},
optipng: {
optimizationLevel: 7,
}
}
}
}]
}