title: Webpack alias with <img> src and file-loader not copying image
body: <p>I have an issue where file-loader isn't copying images that are using a resolve.alias in the image src.</p>
  
  <p>An example:</p>
  
  <pre><code>&lt;img src="assets/images/image.jpg"/&gt;
  </code></pre>
  
  <p>The resolve.alias is:</p>
  
  <pre><code>alias: {
    'assets': path.resolve(__dirname, 'client/assets'),
  }
  </code></pre>
  
  <p>And the file-loader is:</p>
  
  <pre><code>{ test: /\.(jpe?g|gif|png|svg)$/, loader: 'file-loader?name=assets/images/[name].[ext]' }
  </code></pre>
  
  <p>This is in a React/Redux app. I know I can use require but some images use a variable, and if that variable equals a value that has no image, the full app will crash due to failure to load a module.</p>
  
  <p>Anyone any ideas?</p>
  
  <p>Thanks.</p>