title: Can't require css file with react/webpack
body: <p>I am trying to import my css file and I keep getting this error. <code>Cannot find module './style.css'</code>. I modified my <code>webpack.config.js</code> with no luck. Please any guidance or help is appreciated. Yes, Home.js and style.css are in the same directory.</p>
  
  <p><code>webpack.config.js</code></p>
  
  <pre><code>...module: {
      rules: [
        {
          test: /.js$/,
          loader: 'babel-loader',
          include: path.join(__dirname, 'app'),
          exclude: /node_modules/,
          query: {
            presets: ['es2015', 'react', 'stage-1']
          }
        },
        {
          test: /\.css$/,
          loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
        }
      ]
  }...
  </code></pre>
  
  <p><code>style.css</code></p>
  
  <pre><code>body {
    background-color: #000000;
    margin: 0px;
  }
  </code></pre>
  
  <p><code>Home.js</code></p>
  
  <pre><code>import './style.css'
  </code></pre>