title: Use Extract Text Webpack Plugin in Laravel Mix
body: <p>I try to use Css-Modules in Laravel-Mix.</p>
  
  <p>I install it (<code>laravel-mix-react-css-modules</code>) via <code>npm</code> configure in <code>mix</code> .But have a little problem that css module's styles loaded as <code>&lt;style&gt;</code> tag inside <code>&lt;head&gt;</code> tag.</p>
  
  <p>To solve this problem and load style's properly I need to install and configure <code>extract-text-webpack-plugin</code> to my <strong>mix.config</strong>.</p>
  
  <p>Firstly I install alpha version of extract-plugin <strong>4.0.0-alpha.0</strong></p>
  
  <p>After I try to configure it in my <strong>webpack.mix.js</strong></p>
  
  <pre><code>const mix = require('laravel-mix');
  let webpack = require('webpack');
  require('laravel-mix-react-css-modules');
  const ExtractTextPlugin = require("extract-text-webpack-plugin");
  
  mix.react('resources/js/app.js', 'public/js')
      .reactCSSModules('[name]__[local]___[hash:base64:5]')
      .sass('resources/sass/main.scss', 'public/css')
      .version();
  
  mix.webpackConfig({
      entry: {
          vendor: [
              'react',
              'lodash',
              'jquery',
          ]
      },
      plugins: [
          new webpack.optimize.CommonsChunkPlugin({
              names: ["commons", "vendor"],
              filename: 'js/[name].js',
              minChunks: 2
          }),
      ],
      module: {
      rules: [
              {
                  test: /\.(pdf|woff|woff2|eot|ttf|svg)(\?.*$|$)/,
                  loader: 'file-loader?name=[name].[ext]?[hash]'
              },
              // --- CONFIG FOR EXTRACT-TEXT-WEBPACK-PLUGIN ----
              {
              test:  /\.s[ac]ss$/,
              loader: ExtractTextPlugin.extract({
                 fallback: 'style-loader',
                 use : [
                    {
                      loader : 'css-loader',
                    },
                    {
                      loader : 'sass-loader',
                    }
                 ]
             })
          }
      ]
  }
  </code></pre>
  
  <p>});</p>
  
  <p>But this won't work.</p>
  
  <p>Please help..</p>