title: Webpack aliases not working in Karma-webpack
body: <p>I am getting an error with karma not being able to find modules (scss and images specifically) that are loaded from a webpack alias.</p>
  
  <pre><code>   Error: Module build failed: 
     @import '~Styles/file';
     ^
     File to import not found or unreadable: ~Styles/file.
  </code></pre>
  
  <p>Webpack devserver and build are able to find these and work great. Karma can load everything else without a problem, it's only the alias files.</p>
  
  <pre><code>webpack.config.js
  ...
    resolve: {
      alias: {
        Styles: path.resolve(__dirname, 'src/assets/styles'),
  ...
  </code></pre>
  
  <p>I've looked over everything related to this that I can find on this site and on google and I haven't come up with a fix yet.</p>
  
  <p>I'm open to using another plugin to sort out aliases with webpack and karma if that will resolve the issue.</p>
  
  <p>Thanks!</p>