title: Webpack is generating a bundle file for every single SVG file
body: <p>I have a small little react library with a single component, which imports SVGs from an <code>icons</code> directory. I'm trying to bundle my project and get one (1) bundle.js file as the output with webpack, but instead I'm getting a bundle.js and a bundle.js.map file for every single SVG file I have in my <code>icons</code> directory.</p>
  
  <p>Here's my webpack.config.js</p>
  
  <pre><code>var webpack = require('webpack');
  var path = require('path');
  var libraryName = 'bundle';
  var outputFile = libraryName + '.js';
  
  var config = {
    entry: __dirname + '/src/index.js',
    devtool: 'source-map',
    output: {
      path: __dirname + '/dist',
      filename: outputFile,
      library: libraryName,
      libraryTarget: 'umd',
      umdNamedDefine: true,
    },
    module: {
      rules: [
        {
          test: /\.(js|jsx)$/,
          loader: 'babel-loader',
          exclude: /node_modules/,
        },
        {
          test: /\.(js|jsx)$/,
          loader: 'eslint-loader',
          exclude: /node_modules/,
        },
        {
          test: /\.svg$/,
          loader: 'svg-loader',
          exclude: /node_modules/,
        },
      ],
    },
  };
  
  module.exports = config;
  </code></pre>
  
  <p>Am I missing something here?</p>