<commit_before>const webpack = require('webpack');

const NODE_ENV = (process.env.NODE_ENV || 'dev').trim(); // [dev | prod];
console.log(`Enviroment: ${NODE_ENV}`);

module.exports = {
    entry: "./src/",
    // watch: true, //webpack-dev-server --inline --hot
    watchOptions: {
        aggregateTimeout: 200
    },
    devtool: NODE_ENV === 'dev' ? 'eval' : false,
    output: {
        filename: "./docs/bundle.js"
    },
    module: {
        rules: [
            {
                test: /\.js$/,
                loader: "babel-loader",
                query: {
                    presets: ['es2015']
                }
            },
            {
                test: /\.ejs$/,
                loader: 'ejs-loader'
            },
            {
                test: /\.scss$/,
                loaders: ["style-loader", "css-loader", "sass-loader"]
            },
            {
                test: /\.(jpe?g|png|gif|svg)$/i,
                loaders: [
                    'file-loader?hash=sha512&digest=hex&name=./docs/[hash].[ext]',
                    'image-webpack-loader?bypassOnDebug&optimizationLevel=7&interlaced=false'
                ]
            }
        ]
    },

    plugins: [
        new webpack.NoEmitOnErrorsPlugin(),
        new webpack.LoaderOptionsPlugin({
            minimize: true,
            debug: false
        }),
        new webpack.ProvidePlugin({
            _: 'lodash'
        }),
        new webpack.optimize.UglifyJsPlugin(),
    ],

    devServer: {
        publicPath: './docs',
        contentBase: './docs',
        host: 'localhost',
        port: 8080,
        hot: true
    }
};<commit_msg>Update webpack dev server configs<commit_after>const webpack = require('webpack');
const path = require('path');

const NODE_ENV = (process.env.NODE_ENV || 'dev').trim(); // [dev | prod];
console.log(`Enviroment: ${NODE_ENV}`);

module.exports = {
    entry: "./src/",
    devtool: NODE_ENV === 'dev' ? 'eval' : false,
    output: {
        path: path.resolve(__dirname, 'docs'),
        filename: "bundle.js",
    },
    module: {
        rules: [
            {
                test: /\.js$/,
                loader: "babel-loader",
                query: {
                    presets: ['es2015']
                }
            },
            {
                test: /\.ejs$/,
                loader: 'ejs-loader'
            },
            {
                test: /\.scss$/,
                loaders: ["style-loader", "css-loader", "sass-loader"]
            },
            {
                test: /\.(jpe?g|png|gif|svg)$/i,
                loaders: [
                    'file-loader?hash=sha512&digest=hex&name=[hash].[ext]',
                    'image-webpack-loader?bypassOnDebug&optimizationLevel=7&interlaced=false'
                ]
            }
        ]
    },

    plugins: [
        new webpack.NoEmitOnErrorsPlugin(),
        new webpack.LoaderOptionsPlugin({
            minimize: true,
            debug: false
        }),
        new webpack.ProvidePlugin({
            _: 'lodash'
        }),
        new webpack.optimize.UglifyJsPlugin(),
    ],

    devServer: {
        contentBase: path.join(__dirname, "docs"),
        host: 'localhost',
        port: 8080,
        hot: true,
        overlay: true
    }
};
{'fraction_non_alphanumeric': 0.15262515262515264, 'fraction_numerical': 0.008241758241758242, 'mean_word_length': 1.314265536723164, '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': '1501419', 'n_tokens_mistral': 1020, 'n_tokens_neox': 957, 'n_words': 161}