/* eslint-disable */
var path = require('path');
var webpack = require('webpack');

module.exports = {
  entry: [
    // Needed for development.
    "webpack-dev-server/client?http://localhost:8080",
    "webpack/hot/dev-server",
    // Main App.
    "./src/js/main/index.es6"
  ],

  output: {
    filename: "bundle.js",
    path: path.resolve(__dirname, "target"),
    publicPath:"/"
  },

  devServer: {
    contentBase: "./src/html",
  },

  eslint: {
     failOnError: true
   },

  module: {
    // Transpiles ECMA6 into ECMA5 with babel, enables importing of ES6 and React modules.
    loaders: [
      {
        loaders: ["babel?presets[]=es2015&presets[]=react", "eslint-loader"],
        test: /\.es6$/,
      },
      // Enables importing of sass files into the ES6 modules.
      {
        test: /\.sass$/,
        loaders: ["style", "css", "sass"]
      },
      // Enables importing of css files into the ES6 modules.
      {
        test: /\.css$/,
        loaders: ["style", "css"]
      },
      // Enables importing of images into the ES6 modules.
      {
        test: /\.(png|ico)$/,
        loader: "file"

      }
    ]
  }
}

/* eslint-disable */
var path = require('path');
var webpack = require('webpack');

module.exports = {
  entry: [
    // Needed for development.
    "webpack-dev-server/client?http://localhost:8080",
    "webpack/hot/dev-server",
    // Main App.
    "./src/js/main/index.es6"
  ],

  output: {
    filename: "bundle.js",
    path: path.resolve(__dirname, "target"),
    publicPath:"/"
  },

  devServer: {
    contentBase: "./src/html",
  },

  devtool: "source-map",

  eslint: {
     failOnError: true
   },

  module: {
    // Transpiles ECMA6 into ECMA5 with babel, enables importing of ES6 and React modules.
    loaders: [
      {
        loaders: ["babel?presets[]=es2015&presets[]=react", "eslint-loader"],
        test: /\.es6$/,
      },
      // Enables importing of sass files into the ES6 modules.
      {
        test: /\.sass$/,
        loaders: ["style", "css", "sass"]
      },
      // Enables importing of css files into the ES6 modules.
      {
        test: /\.css$/,
        loaders: ["style", "css"]
      },
      // Enables importing of images into the ES6 modules.
      {
        test: /\.(png|ico)$/,
        loader: "file"

      }
    ]
  }
}

add source maps to dev profile