Laravel 5.4 introduced laravel mix with webpack. There is no clear documentation for working with images in laravel mix(like, how it works and to customize it for our needs). Since it is not working as I expected, I would like to disable it for my current project.
How could I disable it?
I have tried by removing below code in webpack.config.js:
{
test: /\.(png|jpg|gif)$/,
loader: 'file-loader',
options: {
name: '[name].[ext]?[hash]'
}
}
but running the command npm run dev
produces this error:
You may need an appropriate loader to handle this file type.