<commit_before>const path = require('path')

module.exports = {
  entry: './src/index.js',
  output: {
    path: path.join(__dirname, 'src', 'public'),
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {
        loader: 'babel-loader?cacheDirectory',
        test: /\.jsx?$/,
        exclude: 'node_modules'
      }
    ]
  },
  resolve: {
    extensions: ['', '.js', '.jsx']
  },
  devtool: 'source-map'
}<commit_msg>update webpack for sass loading (not yet working with file output)<commit_after>const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')

module.exports = {
  entry: path.resolve(__dirname, 'src', 'index.js'),
  output: {
    path: path.resolve(__dirname, 'src', 'public'),
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      // Babel Loader
      {
        loader: 'babel-loader?cacheDirectory',
        test: /\.jsx?$/,
        exclude: 'node_modules'
      },
      // Sass Loader
      {
        loader: ExtractTextPlugin.extract('css-loader?sourceMap', 'sass-loader?sourceMap'),
        test: /\.scss$/
      }
    ]
  },
  sassLoader: {
    file: path.resolve(__dirname, 'src', 'public', 'styles', 'main.scss'),
    includePaths: [path.resolve(__dirname, 'src', 'public', 'styles')],
    outFile: path.resolve(__dirname, 'src', 'public', 'styles', 'main.css'),
    outputStyle: 'compressed'
  },
  // For outputting css file during bundling
  plugins: [
    new ExtractTextPlugin('public/styles/main.css', {
      allChunks: true
    })
  ],
  resolve: {
    extensions: ['', '.js', '.jsx']
  },
  devtool: 'source-map'
}
{'fraction_non_alphanumeric': 0.17972636815920398, 'fraction_numerical': 0.0, 'mean_word_length': 2.7593457943925235, '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': '5171515', 'n_tokens_mistral': 546, 'n_tokens_neox': 534, 'n_words': 109}