<commit_before>var webpack = require("webpack");

module.exports = {
    entry: "./main",
    output: {
        path: __dirname + "/../build",
        filename: "bundle.js"
    },
    module: {
        loaders: [
            { test: /\.css$/, loader: "style!css" }
        ],
        plugins: [
            new webpack.optimize.UglifyJsPlugin()
        ]
    }
};
<commit_msg>Minify everything when in production<commit_after>var env = process.env["NODE_ENV"];
var webpack = require("webpack");

var config = {
    entry: "./main",
    output: {
        path: __dirname + "/../build",
        filename: "bundle.js"
    },
    module: {
        loaders: [
            { test: /\.css$/, loader: "style!css" }
        ]
    },
    plugins: [
    ]

};

if (env === "production") {
    config.plugins.push(new webpack.optimize.UglifyJsPlugin());
}

module.exports = config;

{'fraction_non_alphanumeric': 0.1735632183908046, 'fraction_numerical': 0.0, 'mean_word_length': 1.952542372881356, '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': '5290372', 'n_tokens_mistral': 284, 'n_tokens_neox': 281, 'n_words': 55}