<commit_before>const path = require('path');
const webpackMerge = require('webpack-merge');
const webpackCommon = require('./common.config');
const config = require('../config');

// webpack plugins
const DefinePlugin = require('webpack/lib/DefinePlugin');
const DedupePlugin = require('webpack/lib/optimize/DedupePlugin');
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');

const WebpackMd5Hash = require('webpack-md5-hash');

module.exports = webpackMerge(webpackCommon, {

  debug: false,

  devtool: 'source-map',

  output: {

    path: config.static,

    filename: '[name].min.js',

    sourceMapFilename: '[name].map',

    chunkFilename: '[id]-[chunkhash].js'

  },

  plugins: [
    new WebpackMd5Hash(),
    new DedupePlugin(),
    new UglifyJsPlugin({
      beautify: false,
      mangle: {
        screw_ie8: true,
        keep_fnames: true
      },
      compress: {
        screw_ie8: true,
        warnings: false
      },
      comments: false
    }),
    new DefinePlugin({
      'ENV': JSON.stringify('production'),
      'NODE_ENV': JSON.stringify('production'),
      'process.env': {
        NODE_ENV: '"production"'
      },
      '__DEVELOPMENT__': false
    })
  ]

});
<commit_msg>chore(webpack): disable source-map in production<commit_after>const path = require('path');
const webpackMerge = require('webpack-merge');
const webpackCommon = require('./common.config');
const config = require('../config');

// webpack plugins
const DefinePlugin = require('webpack/lib/DefinePlugin');
const DedupePlugin = require('webpack/lib/optimize/DedupePlugin');
const UglifyJsPlugin = require('webpack/lib/optimize/UglifyJsPlugin');

const WebpackMd5Hash = require('webpack-md5-hash');

module.exports = webpackMerge(webpackCommon, {

  debug: false,

  output: {

    path: config.static,

    filename: '[name].min.js',

    chunkFilename: '[id]-[chunkhash].js'

  },

  plugins: [
    new WebpackMd5Hash(),
    new DedupePlugin(),
    new UglifyJsPlugin({
      beautify: false,
      mangle: {
        screw_ie8: true,
        keep_fnames: true
      },
      compress: {
        screw_ie8: true,
        warnings: false
      },
      comments: false
    }),
    new DefinePlugin({
      'ENV': JSON.stringify('production'),
      'NODE_ENV': JSON.stringify('production'),
      'process.env': {
        NODE_ENV: '"production"'
      },
      '__DEVELOPMENT__': false
    })
  ]

});

{'fraction_non_alphanumeric': 0.14833127317676142, 'fraction_numerical': 0.004120313143798929, 'mean_word_length': 3.129251700680272, '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': '201096', 'n_tokens_mistral': 774, 'n_tokens_neox': 755, 'n_words': 146}