<commit_before>import path from 'path'
import WebpackNotifierPlugin from 'webpack-notifier'

let devConfig = {
    context: path.join(__dirname, 'src'),
    entry: [
        './app.js'
    ],
    output: {
        path: path.join(__dirname, 'build/assets/js'),
        publicPath: 'assets/js/',
        filename: 'app.js'
    },
    devtool: 'eval-source-map',
    devServer: {
        contentBase: 'static',
        historyApiFallback: false
    },
    module: {
        preLoaders: [
            {
                test: /\.js$/, 
                exclude: /node_modules/,
                loader: 'eslint'
            } 
        ],
        loaders: [
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel'
            },
            {
                test: /\.css$/,
                exclude: /node_modules/,
                loaders: ['style', 'css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]']
            },
            {
                test: /\.scss$/,
                exclude: /node_modules/,
                loaders: ['style', 'css', 'sass']
            },
            {
                test: /\.(jpg|png|ttf|eot|woff|woff2|svg)$/,
                exclude: /node_modules/,
                loader: 'url?limit=100000'
            }
        ]
    },
    plugins: [
        new WebpackNotifierPlugin()
    ]
}

if (process.env.NODE_ENV === 'production') {
    devConfig.devtool = ''
    devConfig.devServer = {}
}

export default devConfig
<commit_msg>Enable Webpack historyApiFallback<commit_after>import path from 'path'
import WebpackNotifierPlugin from 'webpack-notifier'

let devConfig = {
    context: path.join(__dirname, 'src'),
    entry: [
        './app.js'
    ],
    output: {
        path: path.join(__dirname, 'build/assets/js'),
        publicPath: 'assets/js/',
        filename: 'app.js'
    },
    devtool: 'eval-source-map',
    devServer: {
        contentBase: 'static',
        historyApiFallback: true
    },
    module: {
        preLoaders: [
            {
                test: /\.js$/, 
                exclude: /node_modules/,
                loader: 'eslint'
            } 
        ],
        loaders: [
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel'
            },
            {
                test: /\.css$/,
                exclude: /node_modules/,
                loaders: ['style', 'css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]']
            },
            {
                test: /\.scss$/,
                exclude: /node_modules/,
                loaders: ['style', 'css', 'sass']
            },
            {
                test: /\.(jpg|png|ttf|eot|woff|woff2|svg)$/,
                exclude: /node_modules/,
                loader: 'url?limit=100000'
            }
        ]
    },
    plugins: [
        new WebpackNotifierPlugin()
    ]
}

if (process.env.NODE_ENV === 'production') {
    devConfig.devtool = ''
    devConfig.devServer = {}
}

export default devConfig

{'fraction_non_alphanumeric': 0.14216789964618848, 'fraction_numerical': 0.007076230299131554, 'mean_word_length': 1.3261032161555721, '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': '7452193', 'n_tokens_mistral': 969, 'n_tokens_neox': 912, 'n_words': 156}