<commit_before>var webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = {
  entry: [
    './app/index.jsx',
    './app/styles/app.less',
  ],
  output: {
    filename: 'bundle.js',
    path: './dist',
    publicPath: "/dist/"
  },
  devtool: 'source-map',
  devServer: { inline: false },
  module: {
    loaders: [
      {
        test: /.jsx?$/,
        loader: 'babel-loader',
        exclude: /node_modules/,
        query: {
          presets: ['es2015', 'react']
        }
      },
      { 
        test: /\.less$/, 
        loader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader"),
      }
    ]
  },
  plugins: [
      new ExtractTextPlugin("styles/style.css")
  ]
}<commit_msg>trying to get LESS into sourcemap<commit_after>var webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');

var lessLoader = ExtractTextPlugin.extract(
  "css?sourceMap!less?sourceMap"
);

module.exports = {
  entry: [
    './app/index.jsx',
    './app/styles/app.less',
  ],
  output: {
    filename: 'bundle.js',
    path: './dist',
    publicPath: "/dist/"
  },
  devtool: 'source-map',
  devServer: { inline: false },
  module: {
    loaders: [
      {
        test: /.jsx?$/,
        loader: 'babel-loader',
        exclude: /node_modules/,
        query: {
          presets: ['es2015', 'react']
        }
      },
      { 
        test: /\.less$/, 
        exclude: /node_modules/, 
        loader: lessLoader 
      },
    ]
  },
  plugins: [
      new ExtractTextPlugin("styles/style.css", {allChunks: true})
  ]
}
{'fraction_non_alphanumeric': 0.17567567567567569, 'fraction_numerical': 0.004914004914004914, 'mean_word_length': 2.138728323699422, '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': '7084886', 'n_tokens_mistral': 563, 'n_tokens_neox': 543, 'n_words': 96}