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

module.exports = {
    entry: [
        path.resolve(process.cwd(), 'src/theme/assets/main-critical.js'),
        path.resolve(process.cwd(), 'src/theme/assets/main.js')
    ],
    output: {
        publicPath: 'http://localhost:8080/_assets/',
        filename: '[name].js',
        chunkFilename: '[id].js'
    },
    module: {
        rules: [
            {
                test: /\.css$/,
                use: [
                    'style-loader',
                    'css-loader?importLoaders=1&minimize=true',
                    'postcss-loader'
                ]
            },
            {
                test: /\.(gif|png|jpe?g|svg)(\?.+)?$/,
                use: ['url-loader']
            },
            {
                test: /\.(eot|ttf|woff|woff2)(\?.+)?$/,
                use: ['url-loader']
            }
        ]
    },
    devtool: 'eval',
    devServer: {
        publicPath: 'http://localhost:8080/_assets/'
    }
};<commit_msg>Add cors headers to dev server responses<commit_after>const path = require('path');

module.exports = {
    entry: [
        path.resolve(process.cwd(), 'src/theme/assets/main-critical.js'),
        path.resolve(process.cwd(), 'src/theme/assets/main.js')
    ],
    output: {
        publicPath: 'http://localhost:8080/_assets/',
        filename: '[name].js',
        chunkFilename: '[id].js'
    },
    module: {
        rules: [
            {
                test: /\.css$/,
                use: [
                    'style-loader',
                    'css-loader?importLoaders=1&minimize=true',
                    'postcss-loader'
                ]
            },
            {
                test: /\.(gif|png|jpe?g|svg)(\?.+)?$/,
                use: ['url-loader']
            },
            {
                test: /\.(eot|ttf|woff|woff2)(\?.+)?$/,
                use: ['url-loader']
            }
        ]
    },
    devtool: 'eval',
    devServer: {
        publicPath: 'http://localhost:8080/_assets/',
        headers: {
            'Access-Control-Allow-Origin': '*'
        }
    }
};
{'fraction_non_alphanumeric': 0.17728136882129278, 'fraction_numerical': 0.009505703422053232, 'mean_word_length': 1.2417465388711395, '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': '1990656', 'n_tokens_mistral': 675, 'n_tokens_neox': 627, 'n_words': 82}