title: Webpack 2 resolve alias
body: <p>I have a little problem regarding resolving aliases in webpack 2. No matter what i do i cant resolve this. Here is the relevant code:</p>
  
  <pre><code>/* webpack.mix.js */
  
         mix.webpackConfig({
           module: {
                 rules: [
                     {
                         test: /\.js$/,
                         loader: 'eslint-loader'
                     }
                 ]
             },
             resolve: {
               root: path.resolve(__dirname), 
                      // path is reqired at the beggining of file 
               alias: {
                 config: 'src/assets/js/config', // this is a config folder
                 js: 'src/assets/js'
               }
             }
         });
  
  /* router.js */ 
  
          import { DashboardRoute } from 'config/route-components'
        // this import is unresolved
  </code></pre>