<commit_before>import path from 'path';

export default {
  devtool : 'source-map',
  entry : {
    bundle: './src/scripts/student-profile/js/react-index'
  },
  output : {
    path: path.join(__dirname, 'dist/src/scripts/student-profile/js'),
    filename: 'bundle.js',
    publicPath: '/static/'
  },
  module : {
    loaders: [
      {
        test: /\.js$/,
        loaders: ['babel'],
        include: path.join(__dirname, 'src')
      }
    ]
  }
};<commit_msg>Updated webpack to generate a vendor chunk and a 'bundle' chunk, as well as process and bundle our scss files.<commit_after>import path from 'path';
import webpack from 'webpack';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';


export default {
  devtool: 'source-map',
  entry: {
    bundle: [
      'webpack-dev-server/client?http://localhost:8080/',
      'webpack/hot/only-dev-server',
      './src/scripts/student-profile/js/react-index'
    ],
    vendor: ['bootstrap', 'isomorphic-fetch', 'react', 'react-dom', 'react-router', 'urijs', 'jquery', 'he', 'address-format']
  },
  output: {
    path: path.join(__dirname, 'dist/src/scripts/student-profile'),
    filename: 'bundle.js',
    publicPath: '/scripts/student-profile'
  },
  module: {
    loaders: [
      {
        test: /\.js$/,
        loaders: ['react-hot', 'babel?presets[]=es2015'],
        include: path.join(__dirname, 'src')
      },
      {
        test: /\.scss$/,
        loader: ExtractTextPlugin.extract('style', 'css?sourceMap!sass?sourceMap')
      }
    ]
  },
  plugins: [
    new ExtractTextPlugin('bundle.css'),
    new webpack.optimize.CommonsChunkPlugin('vendor', 'vendor.js', Infinity),
    new webpack.HotModuleReplacementPlugin(),
    new webpack.ProvidePlugin({
      $: 'jquery',
      jQuery: 'jquery'
    })
  ],
  resolve: {
    modulesDirectories: ['node_modules'],
    extensions: ['', '.js', '.jsx']
  }
};
{'fraction_non_alphanumeric': 0.17182662538699692, 'fraction_numerical': 0.0041279669762641896, 'mean_word_length': 2.909274193548387, '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': '887283', 'n_tokens_mistral': 643, 'n_tokens_neox': 627, 'n_words': 125}