title: Webpack regular expressions
body: <p>Having a first go at webpack.</p>
  
  <p>In my root directory I have my main.js entry point and am also checking for .js and .scss files</p>
  
  <p>It does compile the main.js file. </p>
  
  <p>Webpack cannot seem to find any other .scss or .js files. What have I done wrong.</p>
  
  <p>Full config below:</p>
  
  <pre><code>var webpack = require('webpack');
  var path = require('path');
  let ExtractTextPlugin = require("extract-text-webpack-plugin");
  
  
  
  
      var webpack = require('webpack');
      var path = require('path');
      let ExtractTextPlugin = require("extract-text-webpack-plugin");
  
  
      module.exports = {
  
          entry: './main.js',
          output: {
              path: path.resolve(__dirname, './dist3'),
              filename: 'bundle5.js'
          },
  
          module: {
              rules: [
  
               {  test: /\.js$/, 
                      exclude: /node_modules/, 
                      loader: "babel-loader?presets[]=es2015",
  
                   },
  
                  {
                      test:/\.scss$/,
                      use: ExtractTextPlugin.extract({
                          use: ['css-loader', 'sass-loader'],
                          fallback: 'style-loader',
                      })
                  },
  
  
  
              ]
          },
  
          plugins: [
  
              //new webpack.optimize.UglifyJsPlugin(),
              new ExtractTextPlugin('ross.css')
  
          ]
  
      };
  </code></pre>