title: How do I import a module from a different `/node_modules/` folder
body: <p>This is my files structure: </p>
  
  <pre><code>├── public/
  │   ├── assets
  │   │   ├── node_modules
  │   │   │   ├── jquery
  │   │   │   ├── etc... 
  │   │   ├── images
  │   │   ├──  icons
  │   │   ├──  package.json
  │   ├── es
  │   │   ├── index.js
  │   ├── js
  │   │   ├── bundle.js
  │   ├── scss
  │   ├── css
  │   ├── index.php
  ├── app/
  │   ├── contollers
  │   ├── models
  │   ├── views
  │   ├── helpers
  ├── node_modules/
  │   ├── webpack/
  │   │   ├── ... 
  │   │   │   ├── ...
  ├── package.json
  └── webpack.conf.js/
  </code></pre>
  
  <p>I created 2 separate npms, one for the root folder (<code>/www</code>) for development, and an other for the assets (images, icons and node_modules) under <code>public/assets/</code>. </p>
  
  <p>I want to load the jquery library (for example) module to my <code>index.js</code> file. </p>
  
  <p>Tried: </p>
  
  <pre><code>import '../scss/style.scss';
  
  import {$,jQuery} from '../assets/node_models/jquery';
  </code></pre>
  
  <p>returns </p>
  
  <blockquote>
    <p>ERROR in ./public/es/index.js Module not found: Error: Can't resolve
    '../assets/node_models/jquery' in '/www/public/es'  @
    ./public/es/index.js 5:14-53</p>
  </blockquote>
  
  <p>This  is my webpack.conf.js file: </p>
  
  <pre><code>const path              = require('path');
  const ExtractTextPlugin = require('extract-text-webpack-plugin');
  const HtmlWebpackPlugin = require('html-webpack-plugin');
  const UrlLoader         = require('url-loader');
  
  module.exports = {
  
      entry: { 
                  main: './public/es/index.js' 
      },
      output: {
                  path:       path.resolve(__dirname, 'public/js/'),
                  filename:   'bundle.js'
      },
      module: {
                  rules: [
                              {
                                  test:       /\.js$/,
                                  exclude:    /node_modules/,
                                  use: {
                                          loader: "babel-loader"
                                  }
                              }, 
                              {
                                  test: /\.s?css$/,
                                  use: ExtractTextPlugin.extract({
                                      fallback: 'style-loader',
                                          use: ['css-loader', 'sass-loader']
                                  })
                              }, 
                              {
                                  test: /\.(png|gif|jpe|jpg|woff|woff2|eot|ttf|svg)(\?.*$|$)/,
                                  use: [{
                                      loader: 'url-loader',
                                      options: {
                                        limit: 100000
                                      }
                                  }]
                              }
                  ]
      },
      plugins: [
                  new ExtractTextPlugin({
                      filename: '../css/main-style.css' 
                  }), 
                  new HtmlWebpackPlugin({
                      inject: false,
                      hash: true,
                      template: './public/index.php',
                      filename: 'index.php'
                  })
      ],
      devServer: {
                      port:           3000,
                      contentBase:    __dirname + '/public/js', 
                      inline:         true
      }
  
  };
  </code></pre>
  
  <p>How can I load modules from an other folder?</p>