var HtmlWebpackPlugin = require("html-webpack-plugin"),
    autoprefixer      = require("autoprefixer"),
    path              = require("path");

module.exports = {
  loaders: [{
    test: /\.js$/,
    exclude: /node_modules/,
    loaders: ['react-hot', 'babel'],
    include: path.join(__dirname, 'src')
  },{
    test: /\.png$/,
    loader: "url-loader?limit=100000"
  },{
    test: /\.jpg$/,
    loader: "style!css!postcss-loader"
  },{
    test: /\.less$/,
    loader: "css!less"
  }],
  postcss: [
    autoprefixer({browsers: ['last 4 versions', 'iOS 6', 'Android 2.1']})
  ],
  indexPagePlugin: new HtmlWebpackPlugin({
                    inject: true,
                    title: 'himynameisdave',
                    filename: 'index.html',
                    template: './src/index_template.html'
                  })
};
    loader: "file-loader"
  },{
    test: /\.css$/,