<commit_before>const { resolve } = require('path');
const { isProd, isDev } = require('./webpack/env');

let config = {
  devtool: 'cheap-module-eval-source-map',

  cache: true,
  performance: {
    hints: false,
  },

  context: resolve(__dirname, 'src'),
  entry: {
    bundle: [
      './index.js',
    ],
    vendor: [
      'react',
      'react-dom',
    ],
  },

  output: {
    pathinfo: isDev,
    publicPath: '/',
    path: resolve(__dirname, 'dist'),
    filename: 'js/[name]-[chunkhash:8].js',
    chunkFilename: 'js/[name]-[chunkhash:8].chunk.js',
  },

  resolve: {
    alias: {},
    extensions: [],
    modules: [
      resolve(__dirname, 'src'),
      'node_modules',
    ],
  },

  plugins: [],
  module: {
    rules: [],
  },
};

// Context
config = require('./webpack/stats')(config);
config = require('./webpack/node')(config);

// Modules
config = require('./webpack/modules/noParse')(config);
config = require('./webpack/modules/babel')(config);
config = require('./webpack/modules/css')(config);
config = require('./webpack/modules/urlFont')(config);
config = require('./webpack/modules/urlImage')(config);
config = require('./webpack/modules/urlVideo')(config);

// Plugins
config = require('./webpack/plugins/define')(config);
config = require('./webpack/plugins/hash')(config);

if (isProd) {
  config.devtool = 'source-map';

  // Context
  config = require('./webpack/perf')(config);

  // Plugins
  config = require('./webpack/plugins/clean')(config);
  config = require('./webpack/plugins/manifest')(config);
  config = require('./webpack/plugins/commonsChunk')(config);
  config = require('./webpack/plugins/moduleConcat')(config);
  config = require('./webpack/plugins/uglify')(config);
  config = require('./webpack/plugins/optimizeCss')(config);
}

module.exports = config;<commit_msg>Move node options to prod env<commit_after>const { resolve } = require('path');
const { isProd, isDev } = require('./webpack/env');

let config = {
  devtool: 'cheap-module-eval-source-map',

  cache: true,
  performance: {
    hints: false,
  },

  context: resolve(__dirname, 'src'),
  entry: {
    bundle: [
      './index.js',
    ],
    vendor: [
      'react',
      'react-dom',
    ],
  },

  output: {
    pathinfo: isDev,
    publicPath: '/',
    path: resolve(__dirname, 'dist'),
    filename: 'js/[name]-[chunkhash:8].js',
    chunkFilename: 'js/[name]-[chunkhash:8].chunk.js',
  },

  resolve: {
    alias: {},
    extensions: [],
    modules: [
      resolve(__dirname, 'src'),
      'node_modules',
    ],
  },

  plugins: [],
  module: {
    rules: [],
  },
};

// Context
config = require('./webpack/stats')(config);

// Modules
config = require('./webpack/modules/noParse')(config);
config = require('./webpack/modules/babel')(config);
config = require('./webpack/modules/css')(config);
config = require('./webpack/modules/urlFont')(config);
config = require('./webpack/modules/urlImage')(config);
config = require('./webpack/modules/urlVideo')(config);

// Plugins
config = require('./webpack/plugins/define')(config);
config = require('./webpack/plugins/hash')(config);

if (isProd) {
  config.devtool = 'source-map';

  // Context
  config = require('./webpack/perf')(config);
  config = require('./webpack/node')(config);

  // Plugins
  config = require('./webpack/plugins/clean')(config);
  config = require('./webpack/plugins/manifest')(config);
  config = require('./webpack/plugins/commonsChunk')(config);
  config = require('./webpack/plugins/moduleConcat')(config);
  config = require('./webpack/plugins/uglify')(config);
  config = require('./webpack/plugins/optimizeCss')(config);
}

module.exports = config;
{'fraction_non_alphanumeric': 0.20710382513661202, 'fraction_numerical': 0.001092896174863388, 'mean_word_length': 3.599246231155779, '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': '610630', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1147, 'n_words': 186}