var path = require("path");
var webpack = require("webpack");

module.exports = {
  entry: "./index.js",
  output: {
        path: __dirname,
        filename: "bundle.js"
  },
  devtool: 'source-map',
  module: {
    loaders: [
      {
        test: /\.js?$/,
        loader: 'babel-loader'
      }
    ]
  },
  watch: true,
  plugins: [
    new webpack.optimize.UglifyJsPlugin()
  ]
};