title: Using Webpack custom loader in loaders array
body: <p>I am trying to build a Webpack custom loader:</p>
  
  <pre><code>module.exports = function(source) {
    // Transform the source and return it
    console.log('$$$$$$$$$$$$$$$$$$$$$');
    return source;
  
  };
  </code></pre>
  
  <p>Now, I want to use it in my loaders array, something like:</p>
  
  <pre><code>loaders: [
        {test: /\.vm$/, loader: 'vm-loader', exclude: [/node_modules/, /dist/]}
  ]
  </code></pre>
  
  <p>I tried to use <code>resolveLoader</code>'s <code>alias</code>, but it did not work:</p>
  
  <pre><code>resolveLoader: {
      alias: {
        "vm-loader": path.join(__dirname, "./lib/velocity-plugin")
      },
      root: [
        path.join(__dirname, 'node_modules'),
        path.resolve('./node_modules')
      ]
    }
  </code></pre>
  
  <p>What Am I missing?</p>