title: Cannot resolve load path in webpack
body: <p>I try to migrate gulp+browserify to webpack and I have problems resolving path.</p>
  
  <p>Here is my project tree :</p>
  
  <pre><code>/path/to/project
  ├── webpack.config.js
  └── www/static
          ├── build
          │   ├── js
          │   │   ├── main.js &lt;-------│ Output wanted
          │   │   └── main.js.map &lt;---│
          ├── js
          │   ├── app.js
          │   ├── contact.js
          │   ├── device.js
          │   └── ...
          └── sass
              ├── main.scss
              └── partials
                  ├── _helpers.scss
                  ├── _mixins.scss
                  └── _variables.scss
  </code></pre>
  
  <p>And here is my config file : </p>
  
  <pre><code>var path = require('path');
  
  module.exports = {
      entry: { 'app': 'app.js' },
  
      resolve: {
          modulesDirectories: ['www/static/js/', './']
      },
  
      output: {
          filename: './www/static/build/js/main.js'
      },
      module: {
          loaders: []
      }
  };
  </code></pre>
  
  <p>app.js content for testing purpose :</p>
  
  <pre><code>var $ = require('jquery'),
      Device = require('device'),
      Ga = require('ga');
  
  require('jquery.raty');
  require('jquery.autoNumeric');
  require('jquery.unveil');
  
  function initialize() {}
  
  module.exports = {
      initialize: initialize,
  };
  </code></pre>
  
  <p>And when I launch webpack I got the error with <code>webpack --display-error-details</code> :</p>
  
  <pre>
  ERROR in Entry module not found: Error: Can't resolve 'app' in '/path/to/project'
  resolve 'app' in '/path/to/project'
    Parsed request is a module
    No description file found
    resolve as module
      /Users/jordid/MAWork/MA_vagrant/apps/node_modules doesn't exist or is not a directory
      /Users/jordid/MAWork/MA_vagrant/node_modules doesn't exist or is not a directory
      /Users/jordid/MAWork/node_modules doesn't exist or is not a directory
      /Users/jordid/node_modules doesn't exist or is not a directory
      /Users/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
      looking for modules in /path/to/project/node_modules
        No description file found
        No description file found
        as directory
          /path/to/project/node_modules/app doesn't exist
        no extension
          /path/to/project/node_modules/app doesn't exist
        .js
          /path/to/project/node_modules/app.js doesn't exist
        .json
          /path/to/project/node_modules/app.json doesn't exist
  </pre>
  
  <p>I don't understand why web pack search only in node_modules folder and not in 'www/static/js/' folder.</p>
  
  <p>For information, I will have multiple entries, but for now I just want webpack works.</p>
  
  <p>Thanks for help.</p>