module.exports = {
  entry: ['babel-polyfill', './crawl.js'],
  target: 'node',

  output: {
    path: __dirname + "/build",
    filename: "crawler.js"
  },
  module: {

    loaders: [{
      test: /.js?$/,
      loader: 'babel-loader',
      exclude: /node_modules/
    }, {
      test: /.json?$/,
      loader: 'json-loader',
    },
    {
      test: /\.css$/,
      use: ['style-loader', 'css-loader']
    }]
  }
}
