title: React - Module parse failed: You may need an appropriate loader to handle this file type
body: <p>Please help me on this issue</p>
  
  <p>const path = require('path');
  // const HtmlWebPackPlugin = require("html-webpack-plugin");</p>
  
  <pre><code>module.export = {
  entry:'./src/index.js',
  output:{
      path: path.resolve(__dirname, "build"),
      filename: 'bundle.js'
  },
  module: {
  loaders: [{
    test: /\.(js|jsx)?$/,
      exclude: /node_modules/,
      loader: 'babel-loader',
  
      query: {
         presets: ['es2015', 'react']
      }
  }]
  },
  
  devServer: {
      port: 8000,
      contentBase: 'build',
      inline: true,
      mode: 'development'
  },
  
  }
  </code></pre>