title: Laravel Mix disable file loader for url()
body: <p>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.</p>
  
  <p>How could I disable it?</p>
  
  <p>I have tried by removing below code in webpack.config.js:</p>
  
  <pre><code>{
       test: /\.(png|jpg|gif)$/,
       loader: 'file-loader',
       options: {
           name: '[name].[ext]?[hash]'
        }
  }
  </code></pre>
  
  <p>but running the command <code>npm run dev</code> produces this error:</p>
  
  <blockquote>
    <p>You may need an appropriate loader to handle this file type.</p>
  </blockquote>