<commit_before>var webpack = require('webpack'),
    devtool = '#eval',
    babel = 'babel-loader',
    minimize = process.argv.indexOf('--minimize') !== -1,
    plugins = [];

plugins.push(new webpack.optimize.CommonsChunkPlugin({
    name: "vendor",
    filename:"vendor.js",
    minChunks: Infinity
}));

if (minimize) {
    plugins.push(new webpack.optimize.UglifyJsPlugin({minimize: true}));
    babel = 'babel';
}

module.exports = {
    entry: {
        bundle: "./src/main.js",
        vendor: ['three', 'three-orbit-controls']
    },
    output: {
        path: __dirname + "/app",
        filename: "[name].js"
    },
    module: {
        loaders: [
            {
                test: /src\/.*\.js$/,
                loader: babel,
                query: { presets: ['es2015'] }
            }
        ]
    },
    plugins: plugins,
    devtool: devtool
};
<commit_msg>Kein auslagern im DEV<commit_after>var webpack = require('webpack'),
    devtool = '#eval',
    babel = 'babel-loader',
    minimize = process.argv.indexOf('--minimize') !== -1,
    plugins = [];

if (minimize) {
    plugins.push(new webpack.optimize.CommonsChunkPlugin({name: "vendor", filename:"vendor.js", minChunks: Infinity}));
    plugins.push(new webpack.optimize.UglifyJsPlugin({minimize: true}));
    babel = 'babel';
}

module.exports = {
    entry: {
        bundle: "./src/main.js",
        vendor: ['three', 'three-orbit-controls']
    },
    output: {
        path: __dirname + "/app",
        filename: "[name].js"
    },
    module: {
        loaders: [
            {
                test: /src\/.*\.js$/,
                loader: babel,
                query: { presets: ['es2015'] }
            }
        ]
    },
    plugins: plugins,
    devtool: devtool
};

{'fraction_non_alphanumeric': 0.17302219692657939, 'fraction_numerical': 0.005691519635742743, 'mean_word_length': 1.9847198641765704, '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': '6769242', 'n_tokens_mistral': 591, 'n_tokens_neox': 561, 'n_words': 104}