title: How to configure a loader for a specific path in webpack
body: <p>A question about webpack configure settings: in most examples, the test option in loader only checks the file name, not the full path. I have files in different directories that are the same type, but I want to use a different loader, e.g.</p>
  
  <pre><code>{
      test:/aaa\/.*.html/,
      loader:'loaderA'
  },
  {
      test:/bbb\/.*.html/,
      loader:'loaderB'
  }
  </code></pre>
  
  <p>Is there any way to make that work? Thanks for your attention and answers.</p>