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

module.exports = {
    entry: './assets/js/main.js',
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'build'),
    },
    module: {
        rules: [
            {
                test: /\.tag?$/,
                exclude: /node_modules/,
                enforce: 'pre',
                use: 'riotjs-loader'
            },
            {
                test: /\.js?$/,
                exclude: /node_modules/,
                use: 'babel-loader',
            },
            {
                test: /\.md?$/,
                use: [
                    'html-loader',
                    { loader: 'markdown-loader', options: { breaks: true } },
                ],
            },
            {
                test: /\.less?$/,
                use: [
                    'style-loader',
                    'css-loader',
                    'less-loader',
                ],
            },
            {
                test: /\.(jpg|jpeg|png|svg)?$/i,
                use: 'file-loader',
                // use: {
                //     loader: 'file-loader',
                //     options: {
                //         publicPath: 'assets/images/',
                //         useRelativePath: true,
                //     },
                // },
            },
        ],
    },
    plugins: [
        new webpack.ProvidePlugin({
            riot: 'riot'
        }),
    ],
    resolve: {
        modules: [
            path.resolve(__dirname, './'),
            path.resolve(__dirname, 'assets'),
            'node_modules',
        ],
        extensions: ['.js', '.tag', '.md', '.less'],
    },
};

// const HtmlWebpackPlugin = require('html-webpack-plugin');
// const webpack = require('webpack');


/*
module.exports = {
    entry: './assets/js/main.js',
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'build')
    },
    module: {
        rules: [
            {
                test: /\.tag?$/,
                exclude: /node_modules/,
                enforce: 'pre',
                use: 'riotjs-loader'
            },
            {
                test: /\.js?$/,
                exclude: /node_modules/,
                use: 'babel-loader'
            },
            {
                test: /\.md?$/,
                use: [
                    'html-loader',
                    { loader: 'markdown-loader', options: { breaks: true } }
                ]
            },
            {
                test: /\.less?$/,
                use: [
                    'style-loader',
                    'css-loader',
                    'less-loader'
                ]
            },
            {
                test: /\.(jpg|jpeg|png|svg)?$/i,
                use: 'file-loader'
            }
        ]
    },
    plugins: [
        new webpack.ProvidePlugin({
            riot: 'riot'
        }),
        new HtmlWebpackPlugin({
            template: './index.html',
            inject: false
        }),
        new webpack.HotModuleReplacementPlugin(),
    ],
    resolve: {
        modules: [
            path.resolve(__dirname, './'),
            path.resolve(__dirname, 'assets'),
            'node_modules'
        ]
    },
    devServer: {
        compress: true,
        historyApiFallback: true,
        host: '0.0.0.0',
        hot: false,
        inline: true,
        publicPath: '/build/'
    },
    resolve: {
        extensions: ['.js', '.tag', '.md', '.less']
    }
};
*/<commit_msg>Clean up webpack base config.<commit_after>const path = require('path');
const webpack = require('webpack');

module.exports = {
    entry: './assets/js/main.js',
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'build'),
    },
    module: {
        rules: [
            {
                test: /\.tag?$/,
                exclude: /node_modules/,
                enforce: 'pre',
                use: 'riotjs-loader'
            },
            {
                test: /\.js?$/,
                exclude: /node_modules/,
                use: 'babel-loader',
            },
            {
                test: /\.md?$/,
                use: [
                    'html-loader',
                    { loader: 'markdown-loader', options: { breaks: true } },
                ],
            },
            {
                test: /\.less?$/,
                use: [
                    'style-loader',
                    'css-loader',
                    'less-loader',
                ],
            },
            {
                test: /\.(jpg|jpeg|png|svg)?$/i,
                use: 'file-loader',
            },
        ],
    },
    plugins: [
        new webpack.ProvidePlugin({
            riot: 'riot'
        }),
    ],
    resolve: {
        modules: [
            path.resolve(__dirname, './'),
            path.resolve(__dirname, 'assets'),
            'node_modules',
        ],
        extensions: ['.js', '.tag', '.md', '.less'],
    },
};
{'fraction_non_alphanumeric': 0.15476190476190477, 'fraction_numerical': 0.0007936507936507937, 'mean_word_length': 0.9029822574556436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '2835157', 'n_tokens_mistral': 1426, 'n_tokens_neox': 1324, 'n_words': 232}