title: Dynamic file path in require with webpack?
body: <p>This works fine when i manually request the file using <code>require</code>, however the moment i use the exact same request, but change the string so that it's split up with variables it fails.</p>
  
  <p>This works great:</p>
  
  <pre><code>module.exports = (function() {
      var $svg = require('svg-inline!../../assets/svgs/global/connected.svg');
      console.log($svg);
  }());
  </code></pre>
  
  <p>However if I was to do this:</p>
  
  <pre><code>module.exports = (function() {
      var $path = '../../assets/svgs/global/';
      var $svg = require('svg-inline!'+$path+'connected.svg');
      console.log($svg);
  }());
  </code></pre>
  
  <p>It fails and says inside the console:</p>
  
  <p><code>Uncaught Error: Cannot find module "."</code></p>
  
  <p>I guess my question is why can't you concatenate strings like i have here?</p>