var path = require('path');

module.exports = {
  context: path.join(__dirname, 'src'),
  entry: {
    javascript: './app/main.js',
    html: './index.html'
  },

  output: {
    filename: 'js/bundle.js',
    path: path.join(__dirname, 'dist')
  },

  module: {
    loaders: [
      {
        test: /\.(js|jsx)$/,
        exclude: /node_modules/,
        loaders: ['react-hot', 'babel-loader']
      },
      {
        test: /\.html$/,
        loader: 'file?name=[name].[ext]'
      }
    ]
  }
};

var path = require('path');

module.exports = {
  context: path.join(__dirname, 'src'),
  entry: {
    javascript: './app/app.jsx',
    html: './index.html'
  },

  output: {
    filename: 'js/bundle.js',
    path: path.join(__dirname, 'dist')
  },

  module: {
    loaders: [
      {
        test: /\.(js|jsx)$/,
        exclude: /node_modules/,
        loaders: ['react-hot', 'babel-loader']
      },
      {
        test: /\.html$/,
        loader: 'file?name=[name].[ext]'
      }
    ]
  }
};

fix path for the general app.jsx file