<commit_before>const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
const bundleOutputDir = './dist';

module.exports = (env) => {
    const isDevBuild = !(env && env.prod);
    return [{
        stats: { modules: false },
        entry: { 'main': './js/appInit' },
        resolve: {
            extensions: ['.js', '.jsx', '.ts', '.tsx'],
            alias: {
                "poker": path.join(__dirname, "js"),
            }
        },
        externals: {
            jquery: 'jquery',
            moment: 'moment',
            knockout: 'knockout',
            signals: 'signals',
            signalr: 'signalr',
            'knockout.validation': 'knockout.validation',
        },
        output: {
            path: path.join(__dirname, bundleOutputDir),
            filename: '[name].js',
            publicPath: 'dist/',
            library: {
                root: "PokerClient",
                amd: 'poker-html-client',
                commonjs: 'poker-html-client',
            },
            libraryTarget: "umd",
            umdNamedDefine: true            
        },
        module: {
            rules: [
                { test: /\.(tsx|ts)?$/, include: /js/, use: 'awesome-typescript-loader?silent=true' },
                { test: /\.css$/, use: isDevBuild ? ['style-loader', 'css-loader'] : ExtractTextPlugin.extract({ use: 'css-loader?minimize' }) },
                { test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }<commit_msg>Rename packed output file to poker-html-client<commit_after>const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
const bundleOutputDir = './dist';

module.exports = (env) => {
    const isDevBuild = !(env && env.prod);
    return [{
        stats: { modules: false },
        entry: { 'poker-html-client': './js/appInit' },
        resolve: {
            extensions: ['.js', '.jsx', '.ts', '.tsx'],
            alias: {
                "poker": path.join(__dirname, "js"),
            }
        },
        externals: {
            jquery: 'jquery',
            moment: 'moment',
            knockout: 'knockout',
            signals: 'signals',
            signalr: 'signalr',
            'knockout.validation': 'knockout.validation',
        },
        output: {
            path: path.join(__dirname, bundleOutputDir),
            filename: '[name].js',
            publicPath: 'dist/',
            library: {
                root: "PokerClient",
                amd: 'poker-html-client',
                commonjs: 'poker-html-client',
            },
            libraryTarget: "umd",
            umdNamedDefine: true            
        },
        module: {
            rules: [
                { test: /\.(tsx|ts)?$/, include: /js/, use: 'awesome-typescript-loader?silent=true' },
                { test: /\.css$/, use: isDevBuild ? ['style-loader', 'css-loader'] : ExtractTextPlugin.extract({ use: 'css-loader?minimize' }) },
                { test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }
{'fraction_non_alphanumeric': 0.16534954407294833, 'fraction_numerical': 0.00303951367781155, 'mean_word_length': 1.7984693877551021, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '3259882', 'n_tokens_mistral': 974, 'n_tokens_neox': 933, 'n_words': 187}