const path = require('path')
const babelModule = require('./webpack/babel-module')
const htmlPlugin = require('./webpack/html-plugin')
const workaroundPlugin = require('./webpack/workaround-plugin')

module.exports = {
  entry: [
    './app/index.js'
  ],
  output: {
    filename: 'bundle.js',
    path: path.resolve(__dirname, 'dist')
  },
  devtool: 'eval',
  module: {
    loaders: [ babelModule ]
  },
  devServer: {
    contentBase: 'dist'
  },
  plugins: [ htmlPlugin, workaroundPlugin ]
}

const path = require('path')
const babelModule = require('./webpack/babel-module')
const htmlPlugin = require('./webpack/html-plugin')
const workaroundPlugin = require('./webpack/workaround-plugin')

module.exports = {
  entry: [
    './app/index.js'
  ],
  output: {
    filename: 'bundle.js',
    path: path.resolve(__dirname, 'dist')
  },
  devtool: 'source-map',
  module: {
    loaders: [ babelModule ]
  },
  devServer: {
    contentBase: 'dist'
  },
  plugins: [ htmlPlugin, workaroundPlugin ]
}

Enable source-map, so that we can debug in the browser using the original ES2015 javascript.
Enable source-map, so that we can debug in the browser using the original ES2015 javascript.
