<commit_before>const merge = require('webpack-merge');
const common = require('./webpack.common.js');

const CleanWebpackPlugin = require('clean-webpack-plugin');

module.exports = merge(common, {
  mode: 'production',
  devtool: "source-map",
  plugins: [
    new CleanWebpackPlugin('dist')
  ]
});<commit_msg>Delete comments from bundle of js<commit_after>const merge = require('webpack-merge');
const common = require('./webpack.common.js');

const CleanWebpackPlugin = require('clean-webpack-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');

module.exports = merge(common, {
  mode: 'production',
  devtool: "source-map",
  optimization: {
    minimizer: [
      new UglifyJsPlugin({
        sourceMap: true,
        uglifyOptions: {
          output: {
            comments: false,
          }
        },
      })
    ]
  },
  plugins: [
    new CleanWebpackPlugin('dist')
  ]
});
{'fraction_non_alphanumeric': 0.14806629834254142, 'fraction_numerical': 0.0, 'mean_word_length': 3.3768115942028984, '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': '3692022', 'n_tokens_mistral': 272, 'n_tokens_neox': 273, 'n_words': 54}