module.exports = {
  entry: './js/app.jsx',
  output: {
    filename: './js/bundle.js'
  },
  devtool: 'source-map',
  module: {
    preLoaders: [
      {test: /\.jsx?$/, exclude: /node_modules/, loader: "eslint-loader"}
    ],
    loaders: [
      {test: /\.css$/, loaders: ['style', 'css']},
      {test: /\.jsx?$/, exclude: /node_modules/, loader: "babel-loader"}
    ]
  },
  eslint: {
    configFile: './.eslintrc'
  },
  resolve: {
    // you can now require('file') instead of require('file.coffee')
    extensions: ['', '.js', '.json', '.jsx']
  }
}

module.exports = {
  entry: ['./js/app.jsx'],
  output: {
    filename: './js/bundle.js'
  },
  devtool: 'source-map',
  module: {
    preLoaders: [
      {test: /\.jsx?$/, exclude: /node_modules/, loader: "eslint-loader"}
    ],
    loaders: [
      {test: /\.css$/, loaders: ['style', 'css']},
      {test: /\.jsx?$/, exclude: /node_modules/, loader: "babel-loader"}
    ]
  },
  eslint: {
    configFile: './.eslintrc'
  },
  resolve: {
    // you can now require('file') instead of require('file.coffee')
    extensions: ['', '.js', '.json', '.jsx']
  }
}

Change entry into an array to fix some webpack issue
Change entry into an array to fix some webpack issue
