<commit_before>var webpack = require('webpack');
var path = require('path');

module.exports = {
  context: __dirname,
  devtool: "sourcemap",
  entry: [
    'webpack-dev-server/client?http://localhost:8080',
    'webpack/hot/only-dev-server',
    './index.js'
  ],
  output: {
    path: path.join(__dirname, "build", "js") ,
    filename: "bundle.js"
  },

  module: {
      loaders: [
          {
            test: /\.jsx?$/,
            exclude: /node_modules/,
            loader: "babel-loader",
            query: {
              presets: ['es2015', 'react']
            }
          },
      ]
  }
};




/*


loaders: [
  {
    test: /\.js$,
    loader: 'babel-loader',<commit_msg>Aggiunto hotmodule<commit_after>var webpack = require('webpack');
var path = require('path');

module.exports = {
  context: __dirname,
  devtool: "sourcemap",
  entry: [
    'webpack-dev-server/client?http://localhost:8081',
    'webpack/hot/only-dev-server',
    './index.js'
  ],
  output: {
    path: path.join(__dirname, "build", "js") ,
    filename: "bundle.js"
  },

  module: {
      loaders: [
          {
            test: /\.jsx?$/,
            exclude: /node_modules/,
            loader: "babel-loader",
            query: {
              presets: ['es2015', 'react']
            }
          },
      ]
  },
  plugins: [
        new webpack.HotModuleReplacementPlugin(),
        new webpack.NoErrorsPlugin()
    ]
};




/*


loaders: [
  {
    test: /\.js$,
    loader: 'babel-loader',
{'fraction_non_alphanumeric': 0.17540322580645162, 'fraction_numerical': 0.010752688172043012, 'mean_word_length': 1.8361904761904762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1257584', 'n_tokens_mistral': 523, 'n_tokens_neox': 495, 'n_words': 83}