old_contents: function getEntrySources(sources) {
    if (process.env.NODE_ENV !== 'production') {
      sources.push('webpack-dev-server/client?http://localhost:8080');
      sources.push('webpack/hot/only-dev-server');
    }
  
    return sources;
  }
  
  module.exports = {
    entry: {
      app: getEntrySources([
        './js/app.js'
      ])
    },
  
    output: {
      publicPath: 'http://localhost:8080/',
      filename: 'public/[name].js'
    },
  
    module: {
      loaders: [
        {
          test: /\.scss$/,
          loader: "style!css!sass"
        },
        {
          test: /\.css$/,
          loader: "style!css"
        },
        {
          test: /\.json$/,
          loader: 'json-loader'
        },
        { test: /\.js$/, loaders: ['react-hot', 'jsx', 'babel'], exclude: /node_modules/ }
      ]
    }
  };
  
  
new_contents: function getEntrySources(sources) {
    if (process.env.NODE_ENV !== 'production') {
      sources.push('webpack-dev-server/client?http://localhost:8080');
      sources.push('webpack/hot/only-dev-server');
    }
  
    return sources;
  }
  
  module.exports = {
    entry: {
      app: getEntrySources([
        './js/app.js'
      ])
    },
  
    output: {
      publicPath: 'http://localhost:8080/',
      filename: 'public/[name].js'
    },
  
    module: {
      loaders: [
        {
          test: /\.scss$/,
          loader: "style!css!sass"
        },
        {
          test: /\.css$/,
          loader: "style!css"
        },
        {
          test: /\.json$/,
          loader: 'json-loader'
        },
        {
          test: /\.js$/,
          loaders: ['react-hot', 'jsx', 'babel'],
          exclude: /node_modules/
        }
      ]
    }
  };
  
  
subject: Expand the webpack config js loader block for readability