title: Webpack rendering sass, babel and es2015 - You may need an appropriate loader to handle this file type
body: <p>I want to configure webpack to render es15, react and sass. </p>
  
  <p>After i added code for sass loading I get following message:</p>
  
  <pre><code>ERROR in ./src/app.jsx
  Module parse failed: /home/giedrius/projects/react-redux/react-redux-seed/src/app.jsx Unexpected token (7:11)
  You may need an appropriate loader to handle this file type.
  | class App extends React.Component {
  |   render () {
  |     return &lt;Header/&gt;;
  |   }
  | }
   @ multi (webpack)-dev-server/client?http://localhost:8085 ./src/app.jsx
  </code></pre>
  
  <p>My webpack config looks like this:</p>
  
  <pre><code>const path = require('path'); 
  let webpack = require('webpack');
  let ExtractTextPlugin = require("extract-text-webpack-plugin");
  
      module.exports = {
           entry: './src/app.jsx',
           output: {
               path: path.resolve(__dirname, 'public', 'js'),
               filename: 'app.bundle.js'
           },
           resolve: {
              extensions: ['.js', '.jsx']
           },
           module: {
               loaders: [
                  {
                      test: /.jsx?$/,
                      loader: 'babel-loader',
                      exclude: /node_modules/,
                      options: { presets: ['es2015', 'react'] }
                  }
                ],
                  rules: [
                    {
                      test: /\.scss$/,
                      use: ExtractTextPlugin.extract({
                        fallback: 'style-loader',
                        use: ['css-loader', 'sass-loader']
                      })
                    }
                  ]
        },
        plugins: [
          new ExtractTextPlugin("public/css/styles.css"),
        ]
  
       };
  </code></pre>
  
  <p>Server is starting and showing header, so unsure why is this message is appearing. Anyone had similar issues ?</p>
  
  <p>The code that was added was rules and plugin array.</p>
  
  <p>Any help would be appreciated</p>
  
  <p>Thanks in advance</p>