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

var config = require('./config');

var DEBUG = true;

var config = {
  output: {
    path: path.join(config.project.path, 'build'),
    filename: '[name].js',
    chunkFilename: '[name]-[id]-bundle.js',
    pathinfo: DEBUG
  },
  debug: DEBUG,
  cache: DEBUG,
  watch: DEBUG,
  devtool: 'source-map',
  noParse: [
    /select2.*\.js/,
    /.*angular.*\.js/,
    /.*lodash.*\.js/,
    /.*moment.*\.js/,
    /.*bootstrap.*\.js/,
    /.*velocity.*\.js/
  ],
  resolve: {
    root: [path.join(config.project.path, '/src')],
    modulesDirectories: ['bower_components', 'node_modules'],
    extensions: ['', '.js', '.json']
  },
  module:  {
    loaders: [
      { test: /[\\\/]angular\.js$/, loader: 'expose?angular!exports?angular' }, // export angular so we can do `var angular = require('angular')`
      { test: /[\\\/]jquery\.js$/, loader: 'expose?$!expose?jQuery' }, // export jQuery and $ to global scope.
      { test: /[\\\/]lodash\.js$/, loader: 'expose?_' }, // export jQuery and $ to global scope.
      { test: /[\\\/]moment\.js$/, loader: 'expose?moment' },
      {test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap', { publicPath: '../' } ) },
      {test: /\.less$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader!less-loader?sourceMap') },

      {
        // test should match the following:
        //<commit_msg>ignore all bower components in webpack parsing<commit_after>var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var BowerWebpackPlugin = require('bower-webpack-plugin');

var config = require('./config');

var DEBUG = true;

var config = {
  output: {
    path: path.join(config.project.path, 'build'),
    filename: '[name].js',
    chunkFilename: '[name]-[id]-bundle.js',
    pathinfo: DEBUG
  },
  debug: DEBUG,
  cache: DEBUG,
  watch: DEBUG,
  devtool: 'source-map',
  noParse: [
    /bower_components/
  ],
  resolve: {
    root: [path.join(config.project.path, '/src')],
    modulesDirectories: ['bower_components', 'node_modules'],
    extensions: ['', '.js', '.json']
  },
  module:  {
    loaders: [
      { test: /[\\\/]angular\.js$/, loader: 'expose?angular!exports?angular' }, // export angular so we can do `var angular = require('angular')`
      { test: /[\\\/]jquery\.js$/, loader: 'expose?$!expose?jQuery' }, // export jQuery and $ to global scope.
      { test: /[\\\/]lodash\.js$/, loader: 'expose?_' }, // export jQuery and $ to global scope.
      { test: /[\\\/]moment\.js$/, loader: 'expose?moment' },
      {test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader?sourceMap', { publicPath: '../' } ) },
      {test: /\.less$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader!less-loader?sourceMap') },

      {
        // test should match the following:
        //
{'fraction_non_alphanumeric': 0.21071428571428572, 'fraction_numerical': 0.0003246753246753247, 'mean_word_length': 3.0274509803921568, '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': '199462', 'n_tokens_mistral': 1041, 'n_tokens_neox': 1005, 'n_words': 221}