title: react-icons resolve error with webpack
body: <p>I saw the <a href="https://stackoverflow.com/questions/38270582/react-icons-not-loading-with-webpack">other question</a> about <a href="https://github.com/gorangajic/react-icons" rel="nofollow noreferrer">react-icons</a> not loading in webpack but the error I'm getting is a bit different and I have no idea how to fix it.</p>
  
  <p>I'm trying to use react-icons with webpack but I'm getting the following error:</p>
  
  <blockquote>
    <p>ERROR in ./components/line-item.jsx
    Module not found: Error: Cannot resolve module 'react-icons' in public/map/components @ ./components/line-item.jsx 7:18-40</p>
  </blockquote>
  
  <p>Here is my webpack setup: </p>
  
  <pre><code>var path = require('path');
  var webpack = require('webpack');
  
  var config = {
      iconPath: 'node_modules/react-icons'
  };
  
  module.exports = {
      entry: './main.js',
      output: {path: __dirname, filename: 'bundle.js'},
      module: {
          loaders: [
            {
              test: /.jsx?$/,
              loader: 'babel-loader',
              exclude: /node_modules/,
              query: {
                  presets: ['es2015', 'react']
              }
            },
            {
              test: /react-icons\/(.)*(.js)$/,
              loader: 'babel',
              include: config.iconPath
            },
            {
              test: /\.scss/,
              loader: 'style!css!sass'
            }
        ]
     }
  };
  </code></pre>
  
  <p>Here is where I'm trying to import the react-icons in my line-item.jsx </p>
  
  <pre><code>import React from 'react';
  import FaBeer from 'react-icons';
  
  var LineItem = React.createClass({
  })
  
  module.exports = LineItem;
  </code></pre>
  
  <p>I'm brand new to webpack and just learning as I'm going but any help would be much appreciated.  </p>
  
  <p><strong>EDIT:</strong> 
  I changed the import to </p>
  
  <pre><code>import FaBeer from 'react-icons/fa/beer';
  </code></pre>
  
  <p>and now getting a different error that I do believe is webpack related </p>
  
  <blockquote>
    <p>ERROR in ./~/react-icons/fa/beer.js
    Module parse failed: /Users/oyachinskiy/Documents/ichnaea-root/web-reporting/public/map/node_modules/react-icons/fa/beer.js Unexpected token (8:12)
    You may need an appropriate loader to handle this file type.</p>
  </blockquote>
  
  <p>Thanks! </p>