<commit_before>/*
 * @title Webpack
 * @description Webpack configuration file
 */


/*********************************************************************************
 1. DEPENDENCIES
 *********************************************************************************/

import BowerWebpackPlugin from 'bower-webpack-plugin';
import webpack from 'webpack';


/*********************************************************************************
 2. EXPORTS
 *********************************************************************************/

export default (() => {

    let config = {
        cache: true,
        output: {
            filename: '[name]-[hash].min.js'
        },
        module: {
            preLoaders: [{
                test: /\.js$/,
                exclude: /(node_modules|bower_components)/,
                loader: 'eslint'
            }],
            loaders: [{
                test: /\.js$/,
                exclude: /(node_modules|bower_components)/,
                loader: ['babel'],
                query: {
                    presets: ['es2015']
                }
            }]
        },
        plugins: [new BowerWebpackPlugin({
            includes: /\.js$/
        })]

    };

    // Development extras
    if (process.env.GULP_WEBPACK_DEV === 'true') {
        config.debug = true;
        config.devtool = 'inline-source-map';
    }

    if (process.env.GULP_UGLIFY === 'true') {
        config.plugins.push(new webpack.optimize.UglifyJsPlugin({
            sourceMap: false,
            mangle: true,
            comments: false
        }));
    }

    return config;

})();<commit_msg>fix(webpack): not hashing name during dev<commit_after>/*
 * @title Webpack
 * @description Webpack configuration file
 */


/*********************************************************************************
 1. DEPENDENCIES
 *********************************************************************************/

import BowerWebpackPlugin from 'bower-webpack-plugin';
import webpack from 'webpack';


/*********************************************************************************
 2. EXPORTS
 *********************************************************************************/

export default (() => {

    let config = {
        cache: true,
        output: {
            filename: '[name]-[hash].min.js'
        },
        module: {
            preLoaders: [{
                test: /\.js$/,
                exclude: /(node_modules|bower_components)/,
                loader: 'eslint'
            }],
            loaders: [{
                test: /\.js$/,
                exclude: /(node_modules|bower_components)/,
                loader: ['babel'],
                query: {
                    presets: ['es2015']
                }
            }]
        },
        plugins: [new BowerWebpackPlugin({
            includes: /\.js$/
        })]

    };

    // Development extras
    if (process.env.GULP_WEBPACK_DEV === 'true') {
        config.debug = true;
        config.devtool = 'inline-source-map';
        config.output.filename = '[name].min.js';
    }

    if (process.env.GULP_UGLIFY === 'true') {
        config.plugins.push(new webpack.optimize.UglifyJsPlugin({
            sourceMap: false,
            mangle: true,
            comments: false
        }));
    }

    return config;

})();
{'fraction_non_alphanumeric': 0.30642256902761106, 'fraction_numerical': 0.003601440576230492, 'mean_word_length': 2.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '355289', 'n_tokens_mistral': 885, 'n_tokens_neox': 812, 'n_words': 153}