<commit_before>// Webpack Configuration
// http://webpack.github.io/docs/configuration.html

module.exports = function (isDebug) {
    return {
        output: {
            publicPatch: './build/',
            path: './build/',
            filename: 'app.js',
            hideModules: true
        },

        cache: isDebug,
        debug: isDebug,
        devtool: false,
        entry: './src/app.jsx',
        qiuet: true,

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

        plugins: isDebug ? [] : [
            new webpack.DefinePlugin({'process.env.NODE_ENV': '"production"'})
            new webpack.optimize.DedupePlugin(),
            new webpack.optimize.UglifyJsPlugin(),
            new webpack.optimize.OccurenceOrderPlugin(),
            new webpack.optimize.AggressiveMergingPlugin()
        ],
<commit_msg>Fix webpack.config.js for production build. Closes #2<commit_after>// Webpack Configuration
// http://webpack.github.io/docs/configuration.html

var webpack = require('webpack');

module.exports = function (isDebug) {
    return {
        output: {
            publicPatch: './build/',
            path: './build/',
            filename: 'app.js',
            hideModules: true
        },

        cache: isDebug,
        debug: isDebug,
        devtool: false,
        entry: './src/app.jsx',
        qiuet: true,

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

        plugins: isDebug ? [] : [
            new webpack.DefinePlugin({'process.env.NODE_ENV': '"production"'}),
            new webpack.optimize.DedupePlugin(),
            new webpack.optimize.UglifyJsPlugin(),
            new webpack.optimize.OccurenceOrderPlugin(),
            new webpack.optimize.AggressiveMergingPlugin()
        ],

{'fraction_non_alphanumeric': 0.12679955703211518, 'fraction_numerical': 0.0005537098560354374, 'mean_word_length': 1.7587786259541984, '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': '6505155', 'n_tokens_mistral': 517, 'n_tokens_neox': 509, 'n_words': 99}