<commit_before>// import path from 'path';
const path = require('path');

const ENV = process.env.NODE_ENV;

const webpack = require('webpack');

module.exports = {
    entry: {
        relay: './src/relay/main.js',
        restful: './src/restinpeace/main.js'
    },
    output: {
        path: path.join(__dirname, 'dist'),
        filename: '[name].js'
    },
    resolve: {
        extensions: ['', '.html', '.js', '.json', '.scss', '.css']
    },
    plugins: ( ENV == 'production'
            ? [new webpack.optimize.UglifyJsPlugin({minimize: true})]
            : [new webpack.HotModuleReplacementPlugin()]
    ),
    devServer: {
        contentBase: './',
        hot: true
    },
    module: {
        loaders: [
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel-loader'
            }
        ]
    }
};<commit_msg>fix webpack config<commit_after>// import path from 'path';
const path = require('path');

const ENV = process.env.NODE_ENV;

const webpack = require('webpack');

module.exports = {
    entry: {
        relay: './src/relay/main.js',
        restful: './src/restinpeace/main.js'
    },
    output: {
        path: path.join(__dirname, 'dist'),
        filename: '[name].js'
    },
    resolve: {
        extensions: ['.html', '.js', '.json', '.scss', '.css']
    },
    plugins: ( ENV == 'production'
            ? [new webpack.optimize.UglifyJsPlugin({minimize: true})]
            : [new webpack.HotModuleReplacementPlugin()]
    ),
    devServer: {
        contentBase: './',
        hot: true
    },
    module: {
        loaders: [
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel-loader'
            }
        ]
    }
};
{'fraction_non_alphanumeric': 0.17198879551820728, 'fraction_numerical': 0.0, 'mean_word_length': 1.6816816816816818, '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': '3347229', 'n_tokens_mistral': 569, 'n_tokens_neox': 558, 'n_words': 108}