<commit_before>/*
 * Webpack distribution configuration
 *
 * This file is set up for serving the distribution version. It will be compiled to dist/ by default
 */

'use strict';

var webpack = require('webpack'),
  path = require('path');

module.exports = {

  output: {
    publicPath: '/assets/',
    path: 'dist/assets/',
    filename: 'main.js'
  },

  debug: false,
  devtool: false,
  entry: './src/components/main.js',

  stats: {
    colors: true,
    reasons: false
  },

  plugins: [
    new webpack.optimize.DedupePlugin(),
    new webpack.optimize.UglifyJsPlugin(),
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.optimize.AggressiveMergingPlugin()
  ],

  resolve: {
    extensions: ['', '.json', '.js', '.jsx'],
    alias: {
      'actions': __dirname + '/src/actions/',
      'components': __dirname + '/src/components/',
      'mixins': __dirname + '/src/mixins',
      'routes': __dirname + '/src/routes/',
      'stores': __dirname + '/src/stores/',
      'styles': __dirname + '/src/styles'
    }
  },

  module: {
    preLoaders: [{
      test: /\.jsx?$/,
      exclude: /node_modules/,
      loader: 'jsxhint'
    }],

    loaders: [
      { test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader'},
      { test: /\.css$/, loader: 'style-loader!css-loader'},
      { test: /\.scss/, loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded' },
      { test: /\.(png|jpg|woff|woff2)$/, loader: 'url-loader?limit=8192'},
      { test: /\.json$/, loader: 'json-loader'}
    ]
  }
};
<commit_msg>Reuse resolve & module options from webpack.config.js<commit_after>/*
 * Webpack distribution configuration
 *
 * This file is set up for serving the distribution version. It will be compiled to dist/ by default
 */

'use strict';

var webpack = require('webpack'),
  path = require('path'),
  webpackDevConfig = require('./webpack.config.js');

module.exports = {

  output: {
    publicPath: '/assets/',
    path: 'dist/assets/',
    filename: 'main.js'
  },

  debug: false,
  devtool: false,
  entry: './src/components/main.js',

  stats: {
    colors: true,
    reasons: false
  },

  plugins: [
    new webpack.optimize.DedupePlugin(),
    new webpack.optimize.UglifyJsPlugin(),
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.optimize.AggressiveMergingPlugin()
  ],

  resolve: webpackDevConfig.resolve,
  module: webpackDevConfig.module
};

{'fraction_non_alphanumeric': 0.16763245033112584, 'fraction_numerical': 0.0020695364238410598, 'mean_word_length': 2.9688013136288998, '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': '4403626', 'n_tokens_mistral': 823, 'n_tokens_neox': 803, 'n_words': 180}